Learn R Programming

LongDecompHE (version 0.1.0)

Decomp_sullivan: Two-dimensional decomposition of the difference between the two cohort HE by age and cause

Description

This function implements the two-dimensional stepwise replacement decomposition algorithm (Andreev et al., 2002) to quantify age-cause-specific effect of mortality and disability to the difference in cohort health expectancy between two populations, based on longitudinal attribution results.

Usage

Decomp_sullivan(attribution1, attribution2)

Value

A list including matrices of mortality effects, disability effects, and total effects, as well as cohort HE and LE for each population.

Arguments

attribution1

A list returned by Attribution_sullivan(), representing Population 1.

attribution2

A list returned by Attribution_sullivan(), representing Population 2.

Examples

Run this code
data(attributionA)
data(attributionB)
summary(attributionA)
summary(attributionB)
decom_results <- Decomp_sullivan(attribution1=attributionA,attribution2=attributionA)
summary(decom_results)


Run the code above in your browser using DataLab