Learn R Programming

functClust (version 0.1.6)

R2mse: Coefficient of Determination (R2)

Description

Take two numeric vectors and return their Coefficient of determination (R2).

Usage

R2mse(fprd, fobs)

Arguments

fprd, fobs

two numeric vectors. The first vector contains predicted or modelled values. The second vector contains the reference (observed) values.

Value

Return the Coefficient of Determination (R2).

Details

Be careful, the function R2mse is not symmetrical. The first argument fprd is vector of estimated, modelled or predicted values. The second argument fobs is the vector of reference. Both the vectors have the same length: length(fprd) = length(fobs).

See Also

R2, rss, mse, rmse, pmse