Learn R Programming

easyVerification (version 0.1.8)

EnsRoca: Area under the ROC curve

Description

Computes the area under the ROC curve given the observations

Usage

EnsRoca(ens, obs)

Arguments

ens
n x j matrix of n probability forecasts for j categories
obs
n x j matrix of occurence of n verifying observations in j categories

See Also

veriApply, EnsRocss

Examples

Run this code
tm <- toymodel()

## compute ROC area for tercile forecasts using veriApply
veriApply("EnsRoca", fcst=tm$fcst, obs=tm$obs, prob=1:2/3)

Run the code above in your browser using DataLab