powered by
FEsim
Simulate fixed effects from merMod FEsim simulates fixed effects from merMod object posterior distributions
FEsim(merMod, n.sims = 200, oddsRatio = FALSE, seed = NULL)
a data frame with the following columns
term
Name of fixed term (intercept/coefficient)
mean
Mean of the simulations
median
Median of the simulations
sd
Standard deviation of the simulations, NA if oddsRatio=TRUE
NA
oddsRatio=TRUE
a merMod object from the lme4 package
number of simulations to use
logical, should parameters be converted to odds ratios?
numeric, optional argument to set seed for simulations
Use the Gelman sim technique to build fixed effect estimates and confidence intervals. Uses the sim function in the arm package
require(lme4) m2 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy) fe2 <- FEsim(m2, 25) head(fe2)
Run the code above in your browser using DataLab