multiple_regression: Multiple regression

Description Usage Arguments Details Value Examples

View source: R/multiple_regression.R

Description

Conduct multiple regression analysis and summarize the results in a data.table.

Usage

1
2
3
4
5
6
multiple_regression(
  data = NULL,
  formula = NULL,
  sigfigs = NULL,
  round_digits_after_decimal = NULL
)

Arguments

data

a data object (a data frame or a data.table)

formula

a formula object for the regression equation

sigfigs

number of significant digits to round to

round_digits_after_decimal

round to nth digit after decimal (alternative to sigfigs)

Details

To include standardized beta(s) in the regression results table, the following package(s) must be installed prior to running the function: Package 'lm.beta' v1.5-1 (or possibly a higher version) by Stefan Behrendt (2014), https://cran.r-project.org/package=lm.beta

Value

the output will be a data.table showing multiple regression results.

Examples

1
multiple_regression(data = mtcars, formula = mpg ~ gear * cyl)

kim documentation built on April 25, 2021, 1:06 a.m.