Learn R Programming

ensembleBMA (version 2.0)

controlBMAgamma0: Control parameters for BMA for precipitation.

Description

Specifies a list of values controling the Bayesian Model Averaging fit of a mixture gammas with a point mass at 0 to ensemble forecasts for precipitation.

Usage

controlBMAgamma0(maxIter, eps, nEsteps, transformation, inverseTransformation, 
                start)

Arguments

maxIter
An integer specifying an upper limit on the number of iterations for fitting the BMA mixture via EM. The default is .Machine$integer.max, which essentially sets no upper limit on the number of iterations, so that the convergen
eps
A numeric convergence tolerance. The EM fit for the mixture of gammas is terminated when the relative error in successive objective values in the M-step falls below eps. The default is sqrt(.Machine$double.eps),
nEsteps
The number of E-steps per M-step. The default is 1, but using more E-steps per M-step will cause the convergence criterion to be satisfied in fewer iterations. This is a heuristic for a gain in speed since the results for multiple M-steps
transformation
The function corresponding the transformation of the data used to fit the models for the point mass at 0 and mean of nonzero observations. The untransformed forecast is used to fit the variance model.
inverseTransformation
The function corresponding to the inverse of transformation. Used in various diagnostic methods for the BMA output.
start
An optional list of starting values for variance coefficients and weights. The default is to start with the variance coefficients equal to 1, and with equal weights for each member of the ensemble.

Value

  • A list whose components are the input arguments and their assigned values.

References

J. M. Sloughter, A. E. Raftery, T Gneiting and C. Fraley, Probabilistic Quantitative Precipitation Forecasting using Bayesian Model Averaging, Technical Report No. 496R, Department of Statistics, University of Washington, October 2006 (to appear in Monthly Weather Review).

See Also

ensembleBMAgamma0, forecastBMAgamma0, fitBMAgamma0

Examples

Run this code
data(prcp)

  prcpData <- ensembleData( dates = prcp$date, observations = prcp$obs,
                          forecasts = prcp[,c("CENT","AVN","CMCG","ETA",
                                      "GASP","JMA","NGPS","TCWB","UKMO")])

  prcpFitAlt <- ensembleBMAgamma0(prcpData, trainingRule=list(length=25,lag=2),
                       control = controlBMAgamma0(maxIter = 10, 
                              transformation = function(x) x^(1/4),
                              inverseTransformation = function(x) x^4))

Run the code above in your browser using DataLab