CSMF.interVA5 {InterVA5}R Documentation

Summarize population level cause-specific mortality fraction as InterVA5 suggested.

Description

The function takes input of a list of va object and calculates the cause-specific mortality fraction. It only calculates CSMF5 as aggregation of up to the third largest causes.

Usage

CSMF.interVA5(va)

Arguments

va

The list of va object to summarize.

Value

dist.cod

The cause-specific mortality fraction (including undetermined category).

Author(s)

Jason Thomas, Zehang LI, Tyler McCormick, Sam Clark

See Also

CSMF5

Examples


## Not run: 
data(RandomVA5)
# only fit first 20 observations for a quick illustration
RandomVA5 <- RandomVA5[1:20, ]

sample.output <- InterVA5(RandomVA5, HIV = "h", Malaria = "v", write=TRUE,
       directory = tempdir(), filename = "VA5_result", output = "extended", append = FALSE)
## Get CSMF without plots
csmf <- CSMF.interVA5(sample.output$VA5)

## End(Not run)


[Package InterVA5 version 1.1.3 Index]