R Squared
Regression measure defined as
1 - sum((t - r)^2) / sum((t - mean(t))^2).
Also known as coefficient of determination or explained variation.
Subtracts the rse()
from 1, hence it compares the squared error of
the predictions relative to a naive model predicting the mean.
rsq(truth, response, na_value = NaN, ...)
truth |
( |
response |
( |
na_value |
( |
... |
( |
Performance value as numeric(1)
.
Type: "regr"
Range: (-Inf, 1]
Minimize: FALSE
Required prediction: response
This measure is undefined for constant t.
set.seed(1) truth = 1:10 response = truth + rnorm(10) rsq(truth, response)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.