diff_diff.check_parallel_trends#
- diff_diff.check_parallel_trends(data, outcome, time, treatment_group, pre_periods=None)[source]
Perform a simple check for parallel trends assumption.
This computes the trend (slope) in the outcome variable for both treatment and control groups during pre-treatment periods.
- Parameters:
- Returns:
Dictionary with trend statistics and test results.
- Return type: