make_regression_table: Turns regression results in a data.frame for easy conversion...

View source: R/stats.R

make_regression_tableR Documentation

Turns regression results in a data.frame for easy conversion to a table

Description

Turns regression results in a data.frame for easy conversion to a table

Usage

make_regression_table(model, coefficients_only = TRUE)

Arguments

model

A 'lm' object made from making a model using 'lm()'.

coefficients_only

If TRUE (default), returns only the coefficients,standard error, t-value, p-value, and confidence intervals. Else also returns the r-squared, the adjusted r-squared,f-stat, p-value for the f-stat, and the degrees of freedom.

Value

A data.frame with the regression results

Examples

make_regression_table(lm(mpg ~ cyl, data = mtcars))
make_regression_table(lm(mpg ~ cyl, data = mtcars), coefficients_only = FALSE)

jacobkap/crimeutils documentation built on Jan. 1, 2023, 12:20 a.m.