Learn R Programming

demography (version 2.0)

plot.errorfdm: Plot differences between actuals and estimates from fitted demographic model

Description

Function produces a plot of errors from a fitted demographic model.

Usage

# S3 method for errorfdm
plot(x, transform = TRUE, ...)

Arguments

x

Object of class "errorfdm" generated by compare.demogdata.

transform

Plot errors on transformed scale or original scale?

...

Plotting parameters.

Author

Rob J Hyndman

See Also

compare.demogdata

Examples

Run this code
fr.fit <- lca(extract.years(fr.mort,years=1921:1980))
fr.error <- compare.demogdata(fr.mort, forecast(fr.fit,20))
plot(fr.error)

Run the code above in your browser using DataLab