Skip to content

Instantly share code, notes, and snippets.

@aurielfournier
Created March 8, 2017 14:47
Show Gist options
  • Save aurielfournier/1a709621a91c3c82a4690b81f474cdcd to your computer and use it in GitHub Desktop.
Save aurielfournier/1a709621a91c3c82a4690b81f474cdcd to your computer and use it in GitHub Desktop.
library(sjPlot)
library(sjmisc)
library(lme4)
# load sample data set.
data(efc)
efc$scale_c12hour <- scale(efc$c12hour)
efc$scale_e15reat <- scale(efc$e15relat)
m <- glmer(c175empl ~ scale_c12hour + scale_e15reat + (1|resttotn), data=efc, family=binomial(link = "logit"))
sjp.glmer(m, type="fe.pc", show.ci=TRUE)
# what I would like to do is have this plot, but the x axis be the actual variable, not the scaled variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment