pars: Forecast distribution parameters

Description Usage Arguments Details Value See Also Examples

Description

Computes the parameters of the forecast distribution resulting for univariate ensemble forecasting models.

Usage

1
  pars(fit, ensembleData, dates=NULL, ...)

Arguments

fit

A model fit to ensemble forecasting data, obtained using fitMOS or
ensembleMOS.

ensembleData

An ensembleData object that includes ensemble forecasts, verification observations and possibly dates. Missing values (indicated by NA) are allowed. This need not be the data used for the model fit, although it must include the same ensemble members.

dates

The dates for which the parameters will be computed. These dates must be consistent with fit and ensembleData. The default is to use all of the dates in fit. The dates are ignored if fit originates from fitMOS, which also ignores date information.

...

Included for generic function compatibility.

Details

These methods are generic, and can be applied to all ensemble forecasting models.

Value

pars is a matrix giving the distribution parameter values for each instance in the data. The returned parameters denoted in the column names depend on the model used to generate the fit object.

See Also

ensembleMOS, fitMOS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
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")

tempTestFit <- ensembleMOS(tempTestData, trainingDays = 25, 
                           dates = c("2008010100", "2008010200"),
                           model = "normal")

parValues <- pars(tempTestFit, tempTestData)
parValues

Example output

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


modeling for date 2008010100 ...
(Intercept)      T2.gfs     T2.cmcg      T2.eta     T2.gasp      T2.jma 
     -17.42        0.26        0.19        0.22        0.00        0.24 
    T2.ngps     T2.tcwb     T2.ukmo 
       0.15        0.00        0.00 
          
1.14 0.00 

modeling for date 2008010200 ...
(Intercept)      T2.gfs     T2.cmcg      T2.eta     T2.gasp      T2.jma 
     -18.42        0.25        0.20        0.22        0.01        0.22 
    T2.ngps     T2.tcwb     T2.ukmo 
       0.14        0.01        0.02 
          
1.12 0.00 

       mean       sd
63 279.3695 1.065549
64 277.0113 1.065549
65 281.3638 1.060601
66 279.5494 1.060946

ensembleMOS documentation built on May 2, 2019, 11:03 a.m.