How do I get the standard ANOVA table which has SSR, SSE, SSTO in Python?

253 views Asked by At

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)

This is the output in Python

I would like it to look like the standard ANOVA output as shown below (obtained from Minitab). Is there any way to do it?

Minitab output for extra/sequence SS

0

There are 0 answers