powered by
Calculates the Pearson product moment correlation coefficient (r) from observed and predicted values.
r(o, p)
A numeric vector. Observed values.
A numeric vector. Predicted values.
Pearson product moment correlation coefficient (r).
Interpretation: larger absolute value is better.
# NOT RUN { obs<-c(1:10) pred<-c(1, 1 ,3, 2, 4, 5, 6, 8, 7, 10) r(o=obs, p=pred) # }
Run the code above in your browser using DataLab