Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this problem we'll analyze data from a real randomized trial. In this problem we'll analyze data from a real randomized trial. https://github.com/higgi13425/medicaldata/blob/master/man/description_docs/indo_rct_desc.html) To get
In this problem we'll analyze data from a real randomized trial.
In this problem we'll analyze data from a real randomized trial. https://github.com/higgi13425/medicaldata/blob/master/man/description_docs/indo_rct_desc.html)
To get the data, install and load the `medicaldata` R package:
``` {r load_medicaldata} library(medicaldata) study_data = medicaldata::indo_rct ```
You will also need to look at the data below to understand how you should process the data. We are interested in estimating the marginal risk ratio for post-ERCP pancreatitis ($Y=1$) given indomethacin ($a=1$) vs. placebo ($a=0$):
$$ RR = \frac{E[Y|A=1]}{E[Y|A=0]} $$