r

0th

Percentile

r

Calculates the Pearson product moment correlation coefficient (r) from observed and predicted values.

Usage
r(o, p)
Arguments
o

A numeric vector. Observed values.

p

A numeric vector. Predicted values.

Details

Interpretation: larger absolute value is better.

Value

Pearson product moment correlation coefficient (r).

Aliases
  • r
Examples
# NOT RUN {
obs<-c(1:10)
pred<-c(1, 1 ,3, 2, 4, 5, 6, 8, 7, 10)
r(o=obs, p=pred)

# }
Documentation reproduced from package valmetrics, version 1.0.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.