View source: R/utility_functions.R
lm_simple | R Documentation |
Returns the most useful parts of a basic /codelm() fit to simple univariate (y ~ x) data: intercept, slope, p-value and r squared
lm_simple(formula, data)
formula |
A standard R formula object, passed to /codelm() |
data |
Values to fit (must contain the columns in /codeformula) |
A named list (int, slope, p, rsq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.