Identify a specific causal relationship to investigate and formulate a clear hypothesis that can be tested using observational or experimental data.
Conduct a literature review
Analyze existing studies and theoretical frameworks related to your topic to understand established causal structures and identify potential confounding variables.
Construct a Directed Acyclic Graph
Map out the hypothesized causal relationships between variables, including parents, children, and mediators, to visualize the underlying data generating process.
Identify potential confounders
List all observed and unobserved variables that influence both the treatment and the outcome to prepare for necessary adjustment or control strategies.
Acquire and clean the dataset
Gather relevant longitudinal or cross-sectional data and perform preprocessing steps like handling missing values and normalizing features for consistent model input.
Perform exploratory data analysis
Use visualization and summary statistics to detect correlations, outliers, and patterns that might suggest or refute your initial causal hypotheses.
Select a causal inference framework
Choose an appropriate methodology, such as Propensity Score Matching, Difference-in-Differences, or Instrumental Variables, based on your data structure and DAG.
Implement the causal model
Write the code to execute your chosen estimator, ensuring that all necessary adjustments for confounding variables are correctly integrated into the algorithm.
Validate model assumptions
Run diagnostic tests to check for critical assumptions like unconfoundedness, positivity, or the exclusion restriction to ensure the model's mathematical validity.
Perform sensitivity analysis
Test how much an unobserved confounder would need to influence the results to change your conclusions, establishing the robustness of your causal estimates.
Estimate treatment effects
Calculate the Average Treatment Effect or Conditional Average Treatment Effect and derive confidence intervals to quantify the magnitude and significance of the impact.
Interpret and document findings
Translate the statistical outputs into actionable insights and document the entire modeling pipeline, including assumptions and limitations, for reproducibility and peer review.