Statistics, Machine Learning, Data Science, Financial Planning, Python.
group + covariate', data=df).fit() # Create the ANOVA table anova_table = sm.stats.anova_lm(model, typ=2) # Print the ANOVA table print(anova_table) sum_sq df F PR(>F) group 115.833333 2.0 9.811345 0.003584 covariate 0.066667 1.0 0.011294 0.917280 Residual 64.933333 11.0 NaN NaN In this example,