Learn R Programming

openVA (version 1.0.9)

getTopCOD: Extract the most likely cause of death

Description

Extract the most likely cause of death

Usage

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

Run this code
# NOT RUN {
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", write=FALSE)
getTopCOD(fit)

# }

Run the code above in your browser using DataLab