Description Usage Arguments Value References See Also Examples

Extracts a subset of an `ensembleData`

object corresponding
to a given date and number of training days.

1 | ```
trainingData(ensembleData, trainingDays, consecutive = FALSE, date)
``` |

`ensembleData` |
An |

`trainingDays` |
An integer specifying the number of days in the training period. |

`consecutive` |
If |

`date` |
The date for which the training data is desired. |

An `ensembleData`

object corresponding to the training data for
the given date relative to

`ensembleData`

.

A. E. Raftery, T. Gneiting, F. Balabdaoui and M. Polakowski,
Using Bayesian model averaging to calibrate forecast ensembles,
*Monthly Weather Review* 133:1155-1174, 2005.

J. M. Sloughter, A. E. Raftery, T. Gneiting and C. Fraley,
Probabilistic quantitative precipitation forecasting
using Bayesian model averaging,
*Monthly Weather Review* 135:3309–3320, 2007.

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, December 2008.

Available at: http://www.stat.washington.edu/research/reports/

C. Fraley, A. E. Raftery and T. Gneiting,
Calibrating multi-model forecast ensembles with exchangeable and missing
members using Bayesian model averaging, *Monthly Weather Review*
138:190-202, 2010.

`ensembleMOSnormal`

,
`fitMOSnormal`

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ```
data("ensBMAtest", package = "ensembleBMA")
ensMemNames <- c("gfs","cmcg","eta","gasp","jma","ngps","tcwb","ukmo")
obs <- paste("T2", "obs", sep = ".")
ens <- paste("T2", ensMemNames, sep = ".")
tempTestData <- ensembleData(forecasts = ensBMAtest[,ens],
dates = ensBMAtest[,"vdate"],
observations = ensBMAtest[,obs],
station = ensBMAtest[,"station"],
forecastHour = 48,
initializationTime = "00")
tempTrain <- trainingData(tempTestData, trainingDays = 30,
date = "2008010100")
tempTrainFit <- fitMOSnormal(tempTrain)
``` |

```
Loading required package: ensembleBMA
Loading required package: chron
Loading required package: evd
Attaching package: 'ensembleMOS'
The following objects are masked from 'package:ensembleBMA':
brierScore, cdf, crps, quantileForecast, trainingData
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.