devdev | R Documentation |
Plots the deviances of two model types for comparison. Often used to assess consistency by comparing consistency (NMA or MBNMA) and unrelated mean effects (UME) models (see \insertCitepedder2021cons;textualMBNMAdose). Models must be run on the same set of data or the deviance comparisons will not be valid.
devdev(mod1, mod2, dev.type = "resdev", n.iter = 2000, n.thin = 1, ...)
mod1 |
First model for which to plot deviance contributions |
mod2 |
Second model for which to plot deviance contributions |
dev.type |
STILL IN DEVELOPMENT FOR MBNMAdose! Deviances to plot - can be either residual
deviances ( |
n.iter |
number of total iterations per chain (including burn in; default: 2000) |
n.thin |
thinning rate. Must be a positive integer. Set
|
... |
Arguments to be sent to |
# Using the triptans data
network <- mbnma.network(triptans)
# Run an poorly fitting linear dose-response
lin <- mbnma.run(network, fun=dpoly(degree=1))
# Run a better fitting Emax dose-response
emax <- mbnma.run(network, fun=demax())
# Run a standard NMA with unrelated mean effects (UME)
ume <- nma.run(network, UME=TRUE)
# Compare residual deviance contributions from linear and Emax
devdev(lin, emax) # Suggests model fit is very different
# Compare deviance contributions from Emax and UME
devdev(emax, ume) # Suggests model fit is similar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.