# \donttest{
# 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
# }
Run the code above in your browser using DataLab