mmplot: A Plotting Function

Description Usage Arguments Examples

Description

Produces a plot of the difference between the area-under-the-curve for the mortality data and the extended mortality boundaries

Usage

1
mmplot(n, x, young, old)

Arguments

n

the length of the vector Defaults to TRUE.

x

the vector arguement.

young

the age at which the accident hump begins. Must be entered

old

age at which, either mortality experience between males and females converge, or rapid acceleration of mortality. This is typically over 80 years.

Examples

1
2
3
4
5
6
7
8
9
#Examples
m1 <- Mortality$D.Male[which(Mortality$Year == 2008)]
m2 <- Mortality$E.Male[which(Mortality$Year == 2008)]
male.1 <- m1/m2
male.2 <- log(male.1[!is.na(male.1)])
lplot(1:length(male.2),male.2)


mmplot(1:length(male.2),male.2,young=17,old=80)

RkMetrics documentation built on May 2, 2019, 12:38 p.m.

Related to mmplot in RkMetrics...