evaluate {mapsRinteractive}R Documentation

evaluate

Description

Computes evaluation measures from observed and predicted data.

Usage

evaluate(df, observed, predicted)

Arguments

df

Data.frame. Required. A data.frame with observed and predicted data.

observed

Character value. Required. The name of the column in df with predicted data.The data must be of class numeric.

predicted

Character value or vector. Required. The names of the column(s) in df with predicted data. The data must be of class numeric.

Value

A data.frame with evaluation statistics. For details, see mri function.

Examples

df<-data.frame(obs=1:9, pred=c(2, 9, 10, 8, 3, 4, 6, 12, 1))
e<-evaluate(df, 'obs', 'pred')
print(e)


[Package mapsRinteractive version 2.0.1 Index]