devdev {MBNMAdose} | R Documentation |
Dev-dev plot for comparing deviance contributions from two models
Description
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 Pedder et al. (2021)). Models must be run on the same set of data or the deviance comparisons will not be valid.
Usage
devdev(mod1, mod2, dev.type = "resdev", n.iter = 2000, n.thin = 1, ...)
Arguments
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 |
Examples
# 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