getGLMTable: Get a Table of GLM results

Description Usage Arguments Author(s) Examples

View source: R/getGLMTable.R

Description

This function creates a table including output from common GLM models. formatGLMtable offers further formatting for direct inclusion in scientific publications

Usage

1
2
3
4
5
6
7
getGLMTable(
  model = NULL,
  intercept = TRUE,
  exclude.covariates = NULL,
  fit.indices = FALSE,
  polr.assumptioncheck = FALSE
)

Arguments

model

Data needs to be entered that includes relevant variables for the baseline table

intercept

Should intercepts be included in the output? Default is TRUE.

exclude.covariates

Specify covariates that should be excluded from the output.

fit.indices

Should all fit indices from broom::glance be included? Default is FALSE.

polr.assumptioncheck

Only if ordinal logistic regression is used. This calculates a multinomial model using the nnet package with the same formula as the ordinal logistic regression model. If included, a p-value for the proportionality assumption will be included in the output under column name prop.test. Note that this code only works if variables aren't converted inside the fomula (i.e., factor(Y) ~ X does not work).

Author(s)

Nils Kappelmann

Examples

1
2
3
data(airquality)
model = lm(Temp ~ Wind, data = airquality)
getGLMTable(model = model)

nkappelmann/PubHelper documentation built on Aug. 7, 2021, 5:09 a.m.