Description Usage Arguments Value Author(s) Examples
Function extracts coefficients and p-values from stats::lm-models
1 | extract_lm(model, var, parameter)
|
model |
The stats::lm-model (must be build in advance) |
var |
Name of Variable for with parameter should be extracted. Put in "". |
parameter |
"b" = coefficient, "p" = p-value |
returns "b = ..." or "p = ..."
Dominik Vogel
1 2 | model <- stats::lm(mpg ~ cyl + am, data = mtcars)
extract_lm(model, "cyl", "p")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.