powered by
Computes evaluation measures from observed and predicted data.
evaluate(df, observed, predicted)
Data.frame. Required. A data.frame with observed and predicted data.
Charachter value. Required. The name of the column in df with predicted data.The data must be of class numeric.
Charachter value or vector. Required. The names of the column(s) in df with predicted data. The data must be of class numeric.
A data.frame with evaluation statistics. For details, see mri function.
# NOT RUN { 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