ensembleBMAnormal(ensembleData, dates = NULL,
trainingRule = list(length=NA, lag=NA),
control = controlBMAnormal(), exchangeable = NULL,
minCRPS = FALSE)
ensembleData
object including ensemble forecasts,
verification observations and dates.
Missing values (indicated by NA
) are allowed.length
and lag
for the training
period. The length gives the number of time steps (e.g. days)
in the training period, and the lag gives the number of time steps
ahead of the most recent date in the tcontrolBMAnormal
.ensembleData
in chronological order.dates
in ensembleData
, so there
will be missing entries denoted by NA
for dates that are too recent
to be forecast with the training rule.
The following methods are available for ensembleBMAnormal
objects:
cdf
, quantileForecast
, modelParameters
,
brierScore
, crps
and mae
.C. Fraley, A. E. Raftery, T. Gneiting and J. M. Sloughter,
ensembleBMA
: An R
Package for Probabilistic Forecasting
using Ensembles and Bayesian Model Averaging,
Technical Report No. 516R, Department of Statistics, University of
Washington, May 2008.
C. Fraley, A. E. Raftery, T. Gneiting, BMA Forecasting with Missing and Exchangeable Ensemble Members, in preparation.
ensembleData
,
controlBMAnormal
,
trainingControl
,
fitBMAnormal
,
cdf
,
quantileForecast
,
modelParameters
,
brierScore
,
crps
,
mae
data(slpTest)
memberLabels <- c("AVN","GEM","ETA","NGM","NOGAPS")
slpTestData <- ensembleData(forecasts = slpTest[ ,memberLabels],
observations = slpTest$obs, dates = slpTest$date)
\dontrun{
slpTestFit <- ensembleBMA( slpTestData, model = "normal",
trainingRule = list(length=30,lag=2))
}
slpTestFit <- ensembleBMAnormal( slpTestData,
trainingRule = list(length=30,lag=2))
Run the code above in your browser using DataLab