r_squared | 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.
r_squared(model = model1)
model |
Input data. Just name the model you want to have the R² calculated for. Defaults to maRketingscience's "model1". |
r_squared(model) r_squared()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.