interVA.train(data, train, causes.train, causes.table = NULL, thre = 0.95, type = c("quantile", "fixed", "empirical")[1], prior = c("uniform", "train")[1], ...)data(RandomVA3).data, but with an additional column specifying cause-of-death. Sample input is included as data(RandomVA3).thre in the training data will be dropped from both training and testing data.quantile: the rankings of the P(S|C) are obtained by matching the same quantile distributions in the default InterVA P(S|C)fixed: P(S|C) are matched to the closest values in the default InterVA P(S|C) table. empirical: no ranking is calculated, but use the empirical conditional probabilities directly.
interVA object
Zehang R. Li, Tyler H. McCormick, Samuel J. Clark (2014) InterVA4: An R package to analyze verbal autopsy data., Center for Statistics and the Social Sciences Working Paper, No.146
http://www.interva.net/
data(RandomVA3)
test <- RandomVA3[1:200, ]
train <- RandomVA3[201:400, ]
out <- interVA.train(data = test, train = train, causes.train = "cause",
prior = "train", type = "quantile")
Run the code above in your browser using DataLab