Learn R Programming

openVA (version 1.0.1)

getIndivProb: Extract individual distribution of cause of death

Description

Extract individual distribution of cause of death

Usage

getIndivProb(x, CI = NULL)

Arguments

x
a fitted object from codeVA.
CI
Credible interval for posterior estimates. If CI is set to TRUE, a list is returned instead of a data frame.

Value

a data frame of COD distribution for each individual specified by row names.

Examples

Run this code
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")
probs <- getIndivProb(fit)

Run the code above in your browser using DataLab