I am trying to get an extra/sequence SS output with the following code:
reg2 = smf.ols(formula='Y ~ X3 + X2', data = df).fit()
anova_results2 = sm.stats.anova_lm(reg2, typ=1)
(anova_results2)
I would like it to look like the standard ANOVA output as shown below (obtained from Minitab). Is there any way to do it?