View source: R/r_squared.R View source: R/model_stats.R
model_stats | R Documentation |
This function returns a calculation of the R² of your model based on the squared correlation between actual and predicted values. This is much more stable than the classic lm() function of S and R, which fails already when you delete the intercept.
model_stats(model = model1)
model |
Input data. Just name the model you want to have the R² calculated for. Defaults to maRketingscience's "model1". |
model_stats(model) model_stats()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.