Skip to contents

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"))

Arguments

ald

Aggregate-level data

treatments

Treatment labels list; default B vs C

Value

Trial effect difference