R2 {PerMat}R Documentation

Coefficient of Determination (R-Square)

Description

Coefficient of Determination (R-Square)

Usage

R2(actual, predicted)

Arguments

actual

Actual value of the target variable

predicted

Predicted value of the target variable

Value

Coefficient of Determination (R-Square) of the fitted model

Examples

actual <- c(100, 150, 200, 250, 300, 350, 400, 450, 500, 550)
predicted <- c(95, 148, 210, 245, 290, 360, 395, 440, 510, 540)
R2(actual, predicted)

[Package PerMat version 0.1.0 Index]