Description Usage Arguments Value Examples
forecast
runs final YourCast forecasts given a "gridcast"
object and a "weightcast"
object as inputs.
1 2 
obj 
Object of class 
weights 
Object of class 
point.estimate 
Function applied to calculate the point estimate of the final forecast. Default: 
lower.bound 
Function applied to calculate the lower bound the final forecast. Default: 
upper.bound 
Function applied to calculate the upper bound of the final forecast. Default: 
forecast
returns an object of class "forecast"
, which contains the following components:
yhat
A matrix of forecast point estimates (age groups by time periods).
yhat.lower
A matrix of forecast lower bound estimates (age groups by time periods).
yhat.upper
A matrix of forecast upper bound estimates (age groups by time periods).
y
A matrix of observed data (age groups by time periods).
aux
List. A list of inputs to yourcast
.
validation
List. A list containing all sigma combinations and the associated diagnostics.
weights
The "weightcast"
object provided as an input to forecast
.
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)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.