Data Science, Causal Inference, Linear Regression, Getting Started, Ab Testing.
for linear regression to deal with agent-level data. We just need to specify weights for each agent (equal to the number of cases). model = smf.ols('time_spent_mins ~ treatment + complexity + tenure', data = agents_df[agents_df.treatment == agents_df.passed_training], weights =