extract_df_lm: This function processed lm or glm regression

Description Usage Arguments Value Examples

Description

This function processed lm or glm regression

Usage

1
extract_df_lm(lm_model, include.intercept = T, include.confint = F)

Arguments

lm_model

The inputed lm or glm model to be processed

include.intercept

Include the intercept estimate. Default TRUE.

include.confint

Include the confidence interval estimates. Default FALSE.

Value

a data.frame object with predictor names and estimates

Examples

1
2
3
4
test_data = data.frame(predictor = 1:10, outcome = rnorm(10))
test_model = lm(outcome ~ predictor, data = test_data)
extract_df_lm(test_model)
extract_df_lm(test_model, include.intercept = F)

bryanmayer/dfReg documentation built on May 13, 2019, 8:10 a.m.