| trainingControl {ensembleBMA} | R Documentation |
Function for use in setting training rules in ensembleBMA.
trainingControl(length = 30, lag = NA)
length |
The number of time steps (e.g. days) in the training period. |
lag |
The number of time steps ahead of the most recent date in the training period for which the forecast is valid. There is no default. |
An list with components specifying length and lag that
can be use to set the trainingRule argument in
ensembleData.
## Not run:
data(slpTest)
memberLabels <- c("AVN","GEM","ETA","NGM","NOGAPS")
slpTestData <- ensembleData( forecasts = slpTest[ ,memberLabels],
observations = slpTest$obs, dates = slpTest$date)
trainDat <- trainingData(slpTestData, date = "2000063000",
trainingRule = trainingControl(length=25,lag=2))
slpTestFitTD <- fitBMAnormal(trainDat)
## End(Not run)