Hello,

I am trying to run some code for computing as effect size for paired sample t tests. It will be to compare the effect size between parent and teacher reports of child irritability. I have amended some code that was previously put in another thread on this forum (https://www.statalist.org/forums/for...samples-t-test), but get the following error: display = 'r(mean)'/'r(sd)', unknown function 'r(). Any suggestions for why this might not be running?

gen diffPT_ABC_I_tot = P_ABC_I_tot - T_ABC_I_tot
summ diffPT_ABC_I_tot
display = 'r(mean)'/'r(sd)'

Would this command also be appropriate for looking at the effect size for a signed rank test?

Thanks in advance for any help.

Melanie