R/stat.R
rsq.Rd
Squared coefficient of correlation (R2)
rsq(x, y)
variable x
variable y
Squared coefficient of correlation (R2) or coefficient of determination.
rsq(runif(10), runif(10)) #> [1] 0.07033953