giabaio / BCEA

Bayesian Cost Effectiveness Analysis. Given the results of a Bayesian model (possibly based on MCMC) in the form of simulations from the posterior distributions of suitable variables of costs and clinical benefits for two or more interventions, produces a health economic evaluation. Compares one of the interventions (the "reference") to the others ("comparators"). Produces many summary and plots to analyse the results
https://gianluca.statistica.it/software/bcea/
GNU General Public License v3.0
40 stars 16 forks source link

Info rank plot with multiple comparators #50

Open shubhrampandey opened 1 year ago

shubhrampandey commented 1 year ago

How can I plot info rank plot when we have multiple comparators in the BCEA object.

giabaio commented 1 year ago

The info.rank depends on: 1) the BCEA object (which in turn defines the comparison being made, even if you have multiple comparators) 2) the list (obtained by running the function createInputs) with the simulated values for the model parameters.

For example

library(BCEA)
# Load the example dataset with multiple comparators --- see Baio et al (2017), the BCEA book
data(Smoking)
# Runs BCEA by setting the second intervention as the reference one (and the other 4 acting as comparators)
m=bcea(eff,costs,ref=2)
# Create the list of inputs from the model simulations, stored in the object `smoking`
inp=createInputs(smoking)
# Now run the `info.rank plot`
info.rank(m,inp)