Learn R Programming

LTASR (version 0.1.4)

mapDeaths: Map ICD codes to grouped minors

Description

Map ICD codes to grouped minors

Usage

mapDeaths(persondf, rateobj)

Value

A data.frame for each death observed in the person file with the following variables: id, code, rev: from the persondf

minor: the minor/outcome from the rate file that the death was mapped to

Arguments

persondf

Person data.frame

rateobj

A rate object created from parseRate, or the included rate object us_119ucod_19602021.

Examples

Run this code
library(LTASR)

#Import example person file
person <- person_example

#Import default rate object
rateobj <- us_119ucod_19602021

#Check mapping of deaths to minors/outcomes
mapDeaths(person, rateobj)

Run the code above in your browser using DataLab