Here’s a small preview of forthcoming features in the ggeffects-package, which are already available in the GitHub-version: For marginal effects from models fitted with
glmer.nb(), confidence intervals are now also computed.
If you want to test these features, simply install the package from GitHub:
Here are three examples:
library(glmmTMB) library(lme4) library(ggeffects) data(Owls) m1
The code to calculate confidence intervals is based on the FAQ provided from Ben Bolker. Here is another example, that reproduces this plot (note, since
ggpredict()produces a straight line, and not points with error bars).
library(nlme) data(Orthodont) m5
RelatedTo leave a comment for the author, please follow the link and comment on their blog: R – Strenge Jacke!.
R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...