Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info rank plot with multiple comparators #50

Open
shubhrampandey opened this issue Jun 11, 2023 · 1 comment
Open

Info rank plot with multiple comparators #50

shubhrampandey opened this issue Jun 11, 2023 · 1 comment

Comments

@shubhrampandey
Copy link

shubhrampandey commented Jun 11, 2023

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

@giabaio
Copy link
Owner

giabaio commented Jun 12, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants