explain_results: Explaining Results for OLS models

Description Usage Arguments Examples

View source: R/explain_results.R

Description

This function returns a string for a specific variable that explains in simple terms the influence of the independent variable on the dependent variable.

Usage

1
explain_results(model_name, variable, p_value = 0.05)

Arguments

model_name

The oLS model created

variable

The variable (aka term) used in the model. Needs to be exactly how tidy() would name the variable.

p_value

The significance threshold used to determine significance

Examples

1
2
3
4
model1 <- lm(mpg ~ wt, data = mtcars)
model2 <- lm(mpg ~ wt + cyl + hp + wt + disp, data = mtcars)
explain_results(model1, "wt")
explain_results(model2, "cyl", p_value = 0.1)

rgardiner90/researchr documentation built on Nov. 5, 2019, 3:07 a.m.