RSQ {measures}R Documentation

Coefficient of determination

Description

Also called R-squared, which is 1 - residual_sum_of_squares / total_sum_of_squares.

Usage

RSQ(truth, response)

Arguments

truth

[numeric] vector of true values

response

[numeric] vector of predicted values

Examples

n = 20
set.seed(123)
truth = rnorm(n)
response = rnorm(n)
RSQ(truth, response)

[Package measures version 0.3 Index]