Main analysis
nma.model()
creates BUGS code and that will be put into nma.run()
and analysed through JAGS (Plummer 2017). The reference
parameter indicates the name of the treatment that will be seen as the ‘referent’ comparator, this is often a placebo of some sort. In our case, it is streptokinase (“SK”). Since our outcome is dichotomous, and we are not interested in event rates, we are using the “binomial” family. In our case, we want to compare relative risks, so we are using the \(log\) link. If you are interested in using an odds ratio, set link="logit"
.
fixed_effects_model <- nma.model(data=dich.slr,
outcome="events",
N="sampleSize",
reference="SK",
family="binomial",
link="log",
effects="fixed")
random_effects_model <- nma.model(data=dich.slr,
outcome="events",
N="sampleSize",
reference="SK",
family="binomial",
link="log",
effects="random")
If you want to review or modify the BUGS code, you can review it by outputting cat(fixed_effects_model$bugs)
and cat(random_effects_model$bugs)
.
The next step is to run the NMA model using nma.run()
. Since we are working in a Bayesian framework, we need to specify the number of adaptations, burn-ins, and iterations. A description of Bayesian MCMC is omitted here, we direct the reader to any introductory text on Bayesian Modelling (Lunn et al. 2012).