Machine Learning in Causal Inference: Application in Pharmacovigilance