Related Experiment Video
Updated: Feb 19, 2026

A Method of Trigonometric Modelling of Seasonal Variation Demonstrated with Multiple Sclerosis Relapse Data
Published on: December 9, 2015
simcausal R Package: Conducting Transparent and Reproducible Simulation Studies of Causal Effect Estimation with
Oleg Sofrygin1, Mark J van der Laan2, Romain Neugebauer3
1DOR, Kaiser Permanente Northern California, University of California, Berkeley.
The simcausal R package facilitates reproducible causal inference simulations. It models complex longitudinal data and simulates counterfactuals under various interventions, aiding analysis of time-dependent confounding and selection bias.
Area of Science:
- Causal Inference
- Longitudinal Data Analysis
- Statistical Modeling
Background:
- Complex longitudinal data present challenges in causal inference.
- Time-dependent confounding, selection bias, and monitoring processes complicate real-world data analysis.
- Existing tools may lack flexibility for diverse causal inference scenarios.
Purpose of the Study:
- Introduce the simcausal R package for specifying and simulating complex longitudinal data.
- Provide a flexible tool for transparent and reproducible causal inference simulation studies.
- Address common challenges in real-world causal inference, including time-dependent confounding and selection bias.
Main Methods:
- Utilizes non-parametric structural equation models for data structure specification.
- Enables simulation of counterfactual data under static, dynamic, deterministic, or stochastic interventions.
- Allows concise expression of complex functional dependencies between numerous time-dependent nodes.
Main Results:
- The simcausal package supports the simulation of various interventions, including treatment regimens and censoring events.
- It facilitates the computation of key causal quantities like average treatment effects and marginal structural model coefficients.
- Demonstrated applicability by replicating results from two published simulation studies.
Conclusions:
- simcausal offers a robust and flexible platform for causal inference simulation studies.
- The package simplifies the analysis of complex longitudinal data with time-dependent confounding and selection bias.
- It enhances the transparency and reproducibility of causal inference research.
Related Concept Videos
Causality in Epidemiology
Longitudinal Studies
Study Design in Statistics
Does aspirin reduce the risk of heart attacks? Is one brand of fertilizer more effective at growing roses than another? Is fatigue as dangerous to a driver as the influence of alcohol? Questions like these are answered using randomized experiments with proper...
Introduction To Survival Analysis
The primary goal of survival analysis is to estimate survival time—the time...
Statistical Methods for Analyzing Epidemiological Data
Longitudinal Research

