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)
## equivalent to
## prcpTestFit <- ensembleBMA( prcpTestData, trainingDays = 30,
## model = "gamma0")
# for quick run only; use more training days for forecasting
prcpTestFit <- ensembleBMAgamma0( prcpTestData[3:16,], trainingDays = 6)
Run the code above in your browser using DataLab