Learn R Programming

SpecsVerification (version 0.4-1)

GaussCrpss: Calculate CRPSS for competing Gaussian probabilistic forecasts.

Description

Calculate the continuously ranked probability skill score (CRPS) between two competing probabilistic forecasts issued as Gaussian distributions for the same observation. The standard deviation of the skill score is approximated by propagation of uncertainty. The higher the skill score, the higher the improvement of (mean, sd) over (mean.ref, sd.ref).

Usage

GaussCrpss(mean, sd, mean.ref, sd.ref, obs)

Arguments

mean, mean.ref
vectors of length N. The means of the forecast and the reference forecast.
sd, sd.ref
vectors of length N. The standard deviations of the forecast and the reference forecast.
obs
vector of length N. The verifying observations that the two forecasts try to predict.

Value

A list with the following elements:"crpss": The value of the skill score."sigma.crpss": The standard deviation of the skill score.

Examples

Run this code
  # Example:
  m <- rnorm(100)
  s <- runif(100) + 1
  o <- rnorm(100, m, s)
  m.ref <- mean(o)
  s.ref <- sd(o)
  GaussCrpss(m, s, m.ref, s.ref, o)

Run the code above in your browser using DataLab