plot.morthump: Plot diagnostic for a morthump object

Description Usage Arguments Details See Also Examples

View source: R/plot.morthump.r

Description

Two plots (selectable by which) are currently available. They represent the age-specific death rates, and the density of the hump.

Usage

1
2
## S3 method for class 'morthump'
plot(x, which, ...)

Arguments

x

morthump object resulting from a call to the morthump function

which

type of plot to be produced (see details)

...

other parameters to be passed through to plotting functions

Details

Plot 1 displays the observed age-specific death rates, along with the fitted force of mortality and a estimation of what it look like if there was no young adult mortality hump.

Plot 2 displays the age-specific contributions to the hump. These contributions are rescaled in order for the hump to sum up to 1. Consequently, the surface can be interpreted as a probability density function (pdf), from which summary indicators can be computed such as the mean, mode and median age at death due to the hump. Other summary indicators can be obtained by calling summary.morthump.

See Also

morthump, summary.morthump

Examples

1
2
3
data("CHE2010m")
fit <- morthump(data = CHE2010m, model = "sse")
plot(fit, which = 1)

MortHump documentation built on Jan. 24, 2018, 6:02 p.m.