| score_r2 | R Documentation |
Internal function to compute the R-squared of observations versus predictions via stats::cor(). Used within f_numeric_glm(), f_numeric_gam(), f_numeric_rf(), f_count_glm(), and f_count_gam().
score_r2(o = NULL, p = NULL, ...)
o |
(required, numeric vector) Observations. Default: NULL |
p |
(required, numeric vector) Predictions. Default: NULL |
... |
(optional) Internal args (e.g. |
numeric: Pearson R-squared
Other modelling_tools:
case_weights(),
model_formula(),
score_auc(),
score_cramer()
score_r2(
o = c(1, 1, 1, 0.5, 0.5, 0, 0),
p = c(1, 0.8, 0.7, 0.6, 0.5, 0.1, 0)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.