R bloggers

More support for Bayesian analysis in the sj!-packages #rstats #rstan #brms

FavoriteLoadingAdd to favorites

Another quick preview of my R-packages, especially sjPlot, which now also support brmsfit-objects from the great brms-package. To demonstrate the new features, I load all my „core“-packages at once, using the strengejacke-package, which is only available from GitHub. This package simply loads four packages (sjlabelled, sjmisc, sjstats and sjPlot). First, I fit two sample models, one with brms and one with rstanarm: #> install pkg “strengejacke” via GitHub: #> devtools::install_github(“strengejacke/strengejacke”) library(strengejacke) library(ggplot2) library(lme4) library(glmmTMB) library(brms) library(rstanarm) data(Owls) m1 <- brm( SiblingNegotiation ~ FoodTreatment + ArrivalTime + SexParent + (1 | Nest), data = Owls, family = zero_inflated_poisson(link = “log”, link_zi = “logit”) ) m2 <- stan_glmer.nb( SiblingNegotiation ~ FoodTreatment + ArrivalTime + SexParent + (1 | Nest), data = Owls ) m3 <- stan_lmer(Reaction ~ Days + (Days | Subject), data = sleepstudy) Next, some summary statistics, at first simply…
Original Post: More support for Bayesian analysis in the sj!-packages #rstats #rstan #brms