Controlling for age in $t$-test I have submitted a paper where I have performed a $t$-test between 2 groups A and B (coded as a dummy variable) to compare the mean of an Inattention scale derived from CFA analysis of the ADHD self-reported scale.
We observed a significant difference between the 2 groups (one way $t$-test $p <0.001$). The reviewer asks that we control the effect of age in our study.
Could you tell me how to control for age?
I'm using the following software to conduct the data analysis python, jasp, or jamovi.

I thought I'd complement COOLSerdash's answer by showing what this actually entails in Python (spoiler alert: it's quite simple!).
In a nutshell, you're basically going from this...
import statsmodels.formula.api as smf

model1 = smf.ols('inattention ~ group_a', data).fit()
model1.summary()

(where group_a is a dummy variable indicating whether the individual belongs to group A)
...to this:
import statsmodels.formula.api as smf

model2 = smf.ols('inattention ~ group_a + age', data).fit()
model2.summary()

That's really all it means to control for age. Also, note that the inferences from model1 and from your t-test are equivalent.
