getTopCOD: Extract the most likely cause of death

Description Usage Arguments Value Examples

View source: R/CSMF.r

Description

Extract the most likely cause of death

Usage

1
getTopCOD(x, interVA.rule = TRUE)

Arguments

x

a fitted object from codeVA.

interVA.rule

Logical indicator for interVA object only. If TRUE, only the InterVA reported first cause is extracted.

Value

a data frame of ID and most likely cause assignment.

Examples

1
2
3
4
5
data(RandomVA1)
# for illustration, only use interVA on 100 deaths
fit <- codeVA(RandomVA1[1:100, ], data.type = "WHO", model = "InterVA",
                  version = "4.02", HIV = "h", Malaria = "l")
getTopCOD(fit)

openVA documentation built on May 30, 2017, 3:14 a.m.

Search within the openVA package
Search all R packages, documentation and source code