| FEsim | R Documentation |
FEsim simulates fixed effects from merMod object posterior distributionsSimulate fixed effects from merMod
FEsim simulates fixed effects from merMod object posterior distributions
FEsim(merMod, n.sims = 200, oddsRatio = FALSE, seed = NULL)
merMod |
a merMod object from the lme4 package |
n.sims |
number of simulations to use |
oddsRatio |
logical, should parameters be converted to odds ratios? |
seed |
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
a data frame with the following columns
termName of fixed term (intercept/coefficient)
meanMean of the simulations
medianMedian of the simulations
sdStandard deviation of the simulations, NA if oddsRatio=TRUE
require(lme4)
m2 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
fe2 <- FEsim(m2, 25)
head(fe2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.