apa.regression.glm: apa.regression.glm

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

Description

APA formated interpretation of glm

Usage

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

Arguments

model

glm to be formatted

ci

confint or similar (optional)

Details

Currently only the binomial family is supported

Pulls out the log odds, confidence interval, statistic, and p-value of the model; converts the log odds and confidence interval to odds ratios; formats p-values; 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.lmerModLmerTest, apa.regression.lm, apa.regression

Examples

1
2
3
4
5
6
7
  
  x = testdata.apa.regression.glm
  model = glm(Response ~ Attribute, data = x, family = binomial())
  ci = confint(model)
  tab = apa.regression(model, ci)
  kable(tab, caption = 'Odds ratios with 95% CI', booktabs = TRUE)
  

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