Learn R Programming

neuropsychology (version 0.5.0)

APAze: APA6-ready output for (g)lm , (g)lmer objects and Bayes Factors

Description

APA6-ready output for mixed effects and non-mixed effects linear models.

Usage

APAze(fit,
      method="Wald",
      nsim=1000,
      add.stars=TRUE,
      ddf=NULL)

Arguments

fit
A (g)lm or lme4::(g)lmer fit.
method
"boot" for bootstrapped CI, "Wald" for estimated. Only in the case of a mixed-effect model. See confint.merMod.
nsim
how many times should it bootstrap the confindence intervals (only if method = "boot").
add.stars
Add significance stars.
ddf
Denominator degrees of freedom approximation (only if fit is an instance of lmerTest::merModLmerTest, ignored otherwise). If `NULL`, then the normal approximation (treat t-values as z-values) is used for lmer objects fit with lme4 and the default Satterthwaite is used for models fit with lmerTest.

Examples

Run this code
require(neuropsychology)

df <- personality

fit <- lme4::lmer(Age ~ BMI + (1|Salary), data=df)
APAze(fit, method="Wald")

Run the code above in your browser using DataLab