Data Science, Causal Inference, Linear Regression, Getting Started, Ab Testing.
different impacts from treatment for these two groups. We can use non-linearity to express such relationships in formulas and add treatment * passed_training component to our equation. model = smf.ols('time_spent_mins ~ treatment * passed_training + complexity', data=df).fit()