# NOT RUN {
# }
# NOT RUN {
data(RandomVA5)
# only fit first 20 observations for a quick illustration
RandomVA5 <- RandomVA5[1:20, ]
sample.output <- InterVA5(RandomVA5, HIV = "h", Malaria = "v", write = FALSE,
directory = tempdir(), filename = "VA5_result", output = "extended",
append = FALSE)
## Get CSMF by considering only top 3 causes reported by InterVA5.
## This is equivalent to using CSMF.interVA5() command Note that
## it's different from using all top 3 causses, since they may not
## all be reported
CSMF.summary <- CSMF5(sample.output, InterVA.rule = TRUE,
noplot = TRUE)
## Population level summary using pie chart
CSMF.summary2 <- CSMF5(sample.output, type = "pie",
min.prob = 0.01, title = "population COD distribution using pie chart",
clockwise = FALSE, radius = 0.7, cex = 0.7, cex.main = 0.8)
## Population level summary using bar chart
CSMF.summary3 <- CSMF5(sample.output, type = "bar",
min.prob = 0.01, title = "population COD distribution using bar chart",
cex.main = 1)
CSMF.summary4 <- CSMF5(sample.output, type = "bar",
top.plot = 5, title = "Top 5 population COD distribution",
cex.main = 1)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab