powered by
Computes evaluation measures from observed and predicted data.
evaluate(df, observed, predicted)
A data.frame with evaluation statistics. For details, see mri function.
Data.frame. Required. A data.frame with observed and predicted data.
Character value. Required. The name of the column in df with predicted data.The data must be of class numeric.
Character value or vector. Required. The names of the column(s) in df with predicted data. The data must be of class numeric.
df<-data.frame(obs=1:9, pred=c(2, 9, 10, 8, 3, 4, 6, 12, 1)) e<-evaluate(df, 'obs', 'pred') print(e)
Run the code above in your browser using DataLab