stepTable: Make a Stepwise Regression Table

View source: R/stepTable.R

stepTableR Documentation

Make a Stepwise Regression Table

Description

This function creates a summary table for a linear model, and outputs it to the viewer in HTML Format to facilitate copying and pasting by default. By default it outputs standardized betas for regression coefficients, and it can accept up to 8 models as arguments, which makes it ideal for displaying stepwise models.

Usage

stepTable(
  ...,
  Betas = TRUE,
  ModelStats = FALSE,
  Output = c("viewer", "markdown"),
  twoColumns = TRUE,
  Stars = FALSE
)

Arguments

...

up to 8 linear models, produced by lm

Betas

whether standardized betas should be printed

ModelStats

whether r squared, etc. should be printed

Output

whether output should be displayed in the viewer, or formatted with "Kable" for markdown

twoColumns

if true, returns only coefficient and p value, otherwise returns standard error and t as well.

Stars

adds significance stars for the last model, if requested

Value

The regression table


michaelasher/asherR documentation built on July 5, 2023, 8:55 p.m.