forecast: Run YourCast forecasts given selected weights.

Description Usage Arguments Value Examples

Description

forecast runs final YourCast forecasts given a "gridcast" object and a "weightcast" object as inputs.

Usage

1
2
forecast(obj, weights, point.estimate = median, lower.bound = min,
  upper.bound = max)

Arguments

obj

Object of class "gridcast".

weights

Object of class "weightcast".

point.estimate

Function applied to calculate the point estimate of the final forecast. Default: median.

lower.bound

Function applied to calculate the lower bound the final forecast. Default: min.

upper.bound

Function applied to calculate the upper bound of the final forecast. Default: max.

Value

forecast returns an object of class "forecast", which contains the following components:

Examples

1
2
3
4
5
6
7
8
data(netherlands)
ff <- log(brst3/popu3) ~ log(hc) + log(gdp) + log(tobacco3) + log(fat) + time
out <- gridcast(netherlands_data, formula=ff, model="map",
                           sample.frame=c(1950,2000,2001,2030), verbose=FALSE)
netherlands_forecast <- forecast(out, netherlands_weights)

ageplot(netherlands_forecast)
timeplot(netherlands_forecast)

IQSS/AutoCast documentation built on May 7, 2019, 6:02 a.m.