Hi Statalist,
I would like to generate a group which includes female-asian students and female-european students.
a=1 for female
a=0 for male
b=1 for asian
b=2 for european
b=3 for african
b=4 for x
b=5 for y.......
b=6.....
gen G=1 if a==1 & b==1 | b==2
This command gives female students and all asian and all european students.
How should I correct my mistake?
Thank you
Beyza
I would like to generate a group which includes female-asian students and female-european students.
a=1 for female
a=0 for male
b=1 for asian
b=2 for european
b=3 for african
b=4 for x
b=5 for y.......
b=6.....
gen G=1 if a==1 & b==1 | b==2
This command gives female students and all asian and all european students.
How should I correct my mistake?
Thank you
Beyza
Comment