Description Usage Arguments Value Examples
Calculates the R-squared for a given model, i.e. the measure of the model fit.
1 | r2(pred, truth)
|
pred |
A numeric vector of variable values predicted by the model. |
truth |
A numeric vector of variable values measured. |
The R-squared value for that model.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.