Dear all,
I am trying to perform a mean comparison test for two subgroups of my dataset. I have split up the dataset in Group1 and Group2 ( by median value of Variable a)
Now I need the code ( ideally in a foreach command) to perform a mean comparison tests for the Group 1 and Group 2 means of my variables b,c,d,e,f,g
Is this test possible within my main dataset or do I need to create two separate datasets ( one only including the observations >mean of Variable a : and the other one only < mean of Variable a)?
Advice much appreciated ! Thank you !
I am trying to perform a mean comparison test for two subgroups of my dataset. I have split up the dataset in Group1 and Group2 ( by median value of Variable a)
Now I need the code ( ideally in a foreach command) to perform a mean comparison tests for the Group 1 and Group 2 means of my variables b,c,d,e,f,g
Is this test possible within my main dataset or do I need to create two separate datasets ( one only including the observations >mean of Variable a : and the other one only < mean of Variable a)?
Advice much appreciated ! Thank you !
Comment