crpsContribClasses: Get the contribution to the CRPS per predictand classes.

Description Usage Arguments Value Examples

View source: R/performanceScore.R

Description

Get the contribution to the CRPS for different predictand classes.

Usage

1
crpsContribClasses(crps.vect, obs.vect)

Arguments

crps.vect

A vector of the CRPS value for every target day.

obs.vect

A vector of the observed value (same length as crps.vect).

Value

Contribution to the CRPS (

Examples

1
2
3
4
5
6
7
8
## Not run: 
data <- atmoswing::parseAllNcOutputs('optim/1/results', 1, 'validation')
crps.vect <- atmoswing::crpsVector(data, 10)
res <- atmoswing::crpsContribClasses(crps.vect, data$target.values.raw)
barplot(res$contrib, names.arg=res$labels, las=2, cex.names=0.7)
title('Contribution (%) to the CRPS (not cumulative)')

## End(Not run)

atmoswing/R-toolbox documentation built on Nov. 8, 2019, 3:49 p.m.