Learn R Programming

ROMIplot (version 1.0)

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

Description

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

Usage

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"

Value

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

Details

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

Examples

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

Run the code above in your browser using DataLab