apa.regression.lm: apa.regression.lm

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

Description

APA formated interpretation of lm

Usage

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

Arguments

model

lm to be formatted

ci

confint or similar (optional)

Details

Pulls out the estimates, confidence interval, statistic, and p-value of the model; formats the estimates, confidence interval, 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.lmerModLmerTest, apa.regression

Examples

1
2
3
4
5
6
7
  
  x = testdata.apa.regression.lm
  model = lm(Response ~ Treatment, data = x)
  ci = confint(model)
  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.