make_regression_table {crimeutils} | R 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)
[Package crimeutils version 0.5.1 Index]