Learn R Programming

functClust (version 0.1.6)

R2: 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