Learn R Programming

demography (version 1.02)

forecast.fdmpr: Forecast coherent functional demographic model.

Description

The product and ratio models from coherentfdm are forecast, and the results combined to give forecasts for each group in the original data.

Usage

## S3 method for class 'fdmpr':
forecast(object, ...)

Arguments

object
Output from coherentfdm.
method
Forecasting method to be used.
...
Other arguments as for forecast.fdm.

Value

  • Object of class fmforecast2 containing a list of objects each of class fmforecast. The forecasts for each group in the original data are given first. Then the forecasts from the product model, and finally a list of forecasts from each of the ratio models.

See Also

coherentfdm, forecast.fdm.

Examples

Run this code
fr.sm <- smooth.demogdata(extract.years(fr.mort,1950:2006))
fr.fit <- coherentfdm(fr.sm)
fr.fcast <- forecast(fr.fit)
plot(fr.fcast$male)
plot(fr.fcast$ratio$male, plot.type='component', components=3)
models(fr.fcast)

Run the code above in your browser using DataLab