Basic stata help


I'm new to stata so this is a fairly basic question! I'm trying to find whether there's a relationship between gender and weekly wages, but the variable gender obviously contains both male and female figures. How do I split these up so I have a variable for all male figures and a variable for all the female figures?



TS Contributor
You typically don't do that. The simplest way to compare male and female wages is to type (assuming wage is stored in the variable wage and gender in the variable sex):

regress wage
You can be more fancy by including more control variables. This is also a clasic example for a Heckman selection model, see help heckman.