Statistics, Machine Learning, Data Science, Financial Planning, Python.
Group1 3 30 Group1 4 32 Group1 # Perform one-way ANOVA model = ols('data ~ C(group)', data=df).fit() anova_table = sm.stats.anova_lm(model) # Calculate eta-squared ss_between = anova_table['sum_sq'][0] ss_total = ss_between + anova_table['sum_sq'][1] eta_squared = ss_between / ss_total