apa.regression.lmerModLmerTest: apa.regression.lmerModLmerTest

Description Usage Arguments Details Value Author(s) See Also Examples

Description

APA formated interpretation of lmer

Usage

1
2
## S3 method for class 'lmerModLmerTest'
apa.regression(model, ci = NULL)

Arguments

model

lmer to be formatted

ci

confint or similar (optional)

Details

Pulls out the fixed effects, confidence interval, statistic, and p-value of the model; formats the fixed effects, confidence interval, and p-values; calculates r = √{t^2/(t^2+df)}; and produces a table.

Value

the formatted data.frame

Author(s)

Mark Newman, mark@trinetteandmark.com

See Also

Other regression: apa.confint, apa.regression.glmerMod, apa.regression.glm, apa.regression.lm, apa.regression

Examples

1
2
3
4
5
6
7
  
  x = testdata.apa.regression.lmerModLmerTest
  model = lmer(Response ~ Treatment + (1|FocusGroup), data = x)
  ci = confint(model, parm = "beta_")
  tab = apa.regression(model, ci)
  kable(tab, caption = 'Regression coefficients with 95% CI', booktabs = TRUE)
  

markanewman/apaformat documentation built on May 10, 2019, 1:19 a.m.