extract_df: This is the main function in the dfReg package,

Description Usage Arguments Value Examples

Description

This function takes in a fitted model objects, determines the type of the object, and processes it accordingly

Usage

1
2
extract_df(regression_model, guess_model_type = NULL, include.intercept = T,
  include.confint = F, ...)

Arguments

regression_model

The inputed model to be processed

include.confint

Include the confidence interval estimates. Default FALSE.

guess_object_type

If type not supported can try to guess from a similar object. Currently knows c("lm", "glm", "merModLmerTest", "lmerMod")

Value

a data.frame object with predictor names and estimates

Examples

1
2
3
test_data = data.frame(predictor = 1:10, outcome = rnorm(10))
test_model = lm(outcome ~ predictor, data = test_data)
extract_df(test_model)

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