Extract the most likely cause of death

Share:

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)