ROMI.plot: Creates a Lexis Surface Map of Rates of Mortality Improvement

Description Usage Arguments Details Value Author(s) Examples

View source: R/ROMI.plot.R

Description

Based on deaths counts and exposures OR on death rates, this function plots rates of mortality improvement

Usage

1
ROMI.plot(Dx = NULL, Nx = NULL, mx = NULL, smooth = TRUE)

Arguments

Dx

Lexis matrix of death counts. Rows represent age. Columns represent year.

Nx

Lexis matrix of exposure to risk information. Rows represent age. Columns represent year. Same dimensions required as for Dx

mx

If you do not have Dx and Nx available, you can provide death rates here. Smoothing is not available in the current version of the package since the smoothing routine requires deaths counts and exposures.

smooth

Logical. If TRUE, data will be smoothed using Giancarlo Camarda's package "MortalitySmooth"

Details

The main purpose of this function is to plot rates of mortality improvement. A matrix of those rates will be returned, nevertheless.

Value

A matrix of rates of mortality improvement. The main purpose, however, is to plot the data.

Author(s)

Roland Rau

Examples

1
## Not run: ROMI.plot(Dx=Dx.matrix, Nx=Nx.matrix, smooth=TRUE)

Example output

Loading required package: MortalitySmooth
Loading required package: svcm
Loading required package: Matrix
Loading required package: splines
Loading required package: lattice
Loading required package: RCurl
Loading required package: bitops

ROMIplot documentation built on May 1, 2019, 8:27 p.m.