Description Usage Arguments Examples
View source: R/explain_results.R
This function returns a string for a specific variable that explains in simple terms the influence of the independent variable on the dependent variable.
1 | explain_results(model_name, variable, p_value = 0.05)
|
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 |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.