brierScore {ensembleMOS} | R Documentation |
Brier Score
Description
Computes the Brier score for the probability of exceedance of precipitation threshold values for univariate ensemble forecasting models.
Usage
brierScore(fit, ensembleData, thresholds, dates=NULL, ...)
Arguments
fit |
A model fit to ensemble forecasting data, obtained using
|
ensembleData |
An |
thresholds |
Threshold values for which the probability of exceedance is evaluated, set to 0 to evaluate probability of precipitation forecasts. |
dates |
The dates for which the CRPS will be computed.
These dates must be consistent with |
... |
Included for generic function compatibility. |
Details
Note that the Brier scores are only available for EMOS models suitable for precipitation accumulation, i.e. the censored and shifted gamma, and the censored generalized extreme value distribution EMOS model.
Value
BScores
is a vector giving the Brier scores for each instance in the
data.
References
T. Gneiting and A. E. Raftery, Strictly proper scoring rules, prediction and estimation, Journal of the American Statistical Association 102:359–378, 2007.
See Also
Examples
data("ensBMAtest", package = "ensembleBMA")
ensMemNames <- c("gfs","cmcg","eta","gasp","jma","ngps","tcwb","ukmo")
obs <- paste("PCP24","obs", sep = ".")
ens <- paste("PCP24", ensMemNames, sep = ".")
prcpTestData <- ensembleData(forecasts = ensBMAtest[,ens],
dates = ensBMAtest[,"vdate"],
observations = ensBMAtest[,obs],
station = ensBMAtest[,"station"],
forecastHour = 48,
initializationTime = "00")
prcpTestFitCSG0 <- ensembleMOScsg0(prcpTestData, trainingDays = 25,
dates = "2008010100")
brierScore(prcpTestFitCSG0, ensembleData = prcpTestData,
thresholds = 0)