I have a basic question about what egen and its group function is supposed to do. does it add or multiply the variables contained the group argument
Code:
webuse egenxmpl6, clear /// egen racesex = group(race sex)
ID #1 is a white(0) female(0). The racesex variable returns a value of 1.
ID #2 is a white(0) male(1). But the racesex variable returns the value 2.
I know this must be pretty obvious, but I am not sure how to interpret the grouped values ...
I would appreciate some assistance in this regard.
thanks - Yy
0 Response to Egen .. Group Function
Post a Comment