Calculates the ranked probability score (rps) and
ranked probability skill score (rpss) for probabilistic
forecasts of ordered events.
Usage
rps(obs, pred, baseline=NULL)
Value
rps
Ranked probability scores
rpss
Ranked probability skill score. Uses baseline or
sample climatology as a references score.
rps.clim
Ranked probability score for baseline forecast.
Arguments
obs
A vector of observed outcomes. These values correspond to
columns of prediction probabilities.
pred
A matrix of probabilities for each outcome
occurring. Each column represents a category of prediction.
baseline
If NULL (default) the probability based on the
sample data of each event to occur. Alternatively, a
vector the same length of the as the number categories can be
entered.
### Example from Wilks, note without a baseline and only one### forecast, the rpss and ss are not too meaningfull.rps( obs = c(1), pred = matrix(c(0.2, 0.5, 0.3), nrow = 1))