# \donttest{
# Using the triptans data
network <- mbnma.network(triptans)
# Run an Emax dose-response MBNMA and predict responses
emax <- mbnma.run(network, fun=demax(), method="random")
# Plot deviances
devplot(emax)
# Plot deviances using boxplots
devplot(emax, plot.type="box")
# Plot deviances on a single scatter plot (not facetted by agent)
devplot(emax, facet=FALSE, plot.type="scatter")
# A data frame of deviance contributions can be obtained from the object
#returned by `devplot`
devs <- devplot(emax)
head(devs$dev.data)
# Other deviance contributions not currently implemented but in future
#it will be possible to plot them like so
#devplot(emax, dev.type="dev")
# }
Run the code above in your browser using DataLab