tidy_lr: Tidy Output for Linear Regression

Description Usage Arguments Value Examples

View source: R/sptidy.R

Description

Create a tidy output for lm() object. The output would have n+1 rows, where n is number of features and 4 columns describing coefficient estimates, standard error, t-statistics and p-values

Usage

1
tidy_lr(model)

Arguments

model

lm_description

Value

output data.frame

Examples

1
2
3
4
5
library(sptidy)

data("longley")
my_lr <- lm(Employed~., data = longley)
tidy_lr(my_lr)

UBC-MDS/sptidy documentation built on March 23, 2021, 8:33 a.m.