R2
)Take two numeric vectors
and return their Coefficient of determination (R2
).
R2mse(fprd, fobs)
two numeric vectors. The first vector contains predicted or modelled values. The second vector contains the reference (observed) values.
Return the Coefficient of Determination (R2
).
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)
.