AnovaGLM: computing partial eta squared

Hi, I’ve been using anova_lm to compute some ANOVAs. However, the tables don’t come with Partial eta squared (\eta _{p}^{2}), which is often asked in journals as measure of effect size. And I seem to be unable to access the last row of the table (residuals), which is needed to compute them. Any ideas on how to proceed?

Thanks!

You need values in the “Exp.SS” column of the print out right? In case there is no better way, you could grab the values from the AnovaTable object, I think expSS = anovatable(anova_lm(...)).cols[2], and then expSS[end] would be the last value/row.