Marginal treatment effect from reported event counts
Source:R/ALD_stats.R
marginal_treatment_effect.Rd
Calculate $$ \log\left( \frac{n_B/(N_B-n_B)}{n_C/(N_B-n_{B})} \right) = \log(n_B n_{\bar{C}}) - \log(n_C n_{\bar{B}}) $$ where \(\bar{C}\) is the compliment of \(C\) so e.g. \(n_{\bar{C}} = N_C - n_c\).
Usage
marginal_treatment_effect(ald, treatments = list("B", "C"))