get_lm_stats | R Documentation |
Given a linear model object created with lm() or lmodel2(), retrieve the coefficients (intercept and slope) and a dataframe of simple statistics.
get_lm_stats(modelobject, method = "OLS")
modelobject |
Object of class lm or lmodel2 |
method |
For lmodel2 only, regression method: either "OLS", "MA", or "SMA", see ?lmodel2 for details |
List containing coefficients in the first place and a dataframe of model statistics in the second place
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.