Learn R Programming

demography (version 1.0)

models: Show model information for the forecast coefficients in FDM models.

Description

The models for the time series coefficients used in forecasting fdm models are shown.

Usage

## S3 method for class 'fmforecast':
models(object, select=0, ...)
## S3 method for class 'fmforecast2':
models(object, ...)

Arguments

object
select
Indexes of coefficients to display. If select=0, all coefficients are displayed.
...
Other arguments.

Value

  • Nothing is returned.

See Also

forecast.fdm, forecast.fdmpr.

Examples

Run this code
fr.sm <- smooth.demogdata(extract.years(fr.mort,1950:2006))
fr.fit <- fdm(fr.sm,series="male")
fr.fcast <- forecast(fr.fit)
models(fr.fcast)

fr.fit <- coherentfdm(fr.sm)
fr.fcast <- forecast(fr.fit)
models(fr.fcast,select=1:3)

Run the code above in your browser using DataLab