R2R Documentation

Pearson' R2.

Description

Take two numeric vectors and return the "Pearson" coefficient of correlation for the linear regression between x and y.

Usage

R2(x, y)

Arguments

x, y

numeric vectors of same length.

Value

Return the "Pearson" coefficient of correlation for the linear regression between the vectors x and y.

See Also

rss, mse, rmse, R2mse, pmse