R2 {pAnalysis} | R Documentation |
Simple measure of R-squared
R2(x, y)
x |
a vector of real numbers |
y |
a vector of real numbers; must be the same length as |
R2 output is a number between 0 and 1
Joseph G. Kreke, PhD
x=c(1,2,3,4,5,6)
y=c(1.2, 2.1, 2.9, 3.9, 5.3, 6.0)
r2 <- R2(x,y)