data(ensBMAtest)
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")
if (FALSE) # R check
prcpTestFit <- ensembleBMAgamma0( prcpTestData, trainingDays = 30)
hist(prcpTestData$obs)
brierScore(prcpTestFit, prcpTestData,
thresholds = seq(from = 0, to = .5, by = .1))
Run the code above in your browser using DataLab