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

Description Usage Arguments Value Examples

View source: R/stats.R

Description

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

Usage

1
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

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

crimeutils documentation built on Feb. 3, 2021, 5:07 p.m.