Learn R Programming

openVA (version 1.0.15)

plotVA: Plot top CSMF for a fitted model

Description

Plot top CSMF for a fitted model

Usage

plotVA(object, top = 10, title = NULL, ...)

Arguments

object

a fitted object using codeVA

top

number of top causes to plot

title

title of the plot

...

additional arguments passed to plot.insilico, plot.tariff, CSMF, or plot.nbc function in the nbc4va package.

See Also

plot.insilico, plot.tariff, CSMF

Examples

Run this code
# \donttest{
data(RandomVA3)
test <- RandomVA3[1:200, ]
train <- RandomVA3[201:400, ]
fit1 <- codeVA(data = test, data.type = "customize", model = "InSilicoVA",
                    data.train = train, causes.train = "cause",
                    Nsim=1000, auto.length = FALSE)

fit2 <- codeVA(data = test, data.type = "customize", model = "InterVA",
               data.train = train, causes.train = "cause",
               version = "4.02", HIV = "h", Malaria = "l")

fit3 <- codeVA(data = test, data.type = "customize", model = "Tariff",
               data.train = train, causes.train = "cause", 
               nboot.sig = 100)

plotVA(fit1)
plotVA(fit2)
plotVA(fit3)
# }

Run the code above in your browser using DataLab