Hello,
I have a large population data set consisting of variables age, sex, province & year in China. I want to create a sex ratio of number of males per 100 females for each age, province and year. So for example the sex ratios (number of males /number of females * 100) for all 18 years old in Beijing the year 1982 etc. Since the dataset is very large I cannot do it manually. I’ve been trying to use the egen command but cannot get it to work. Does anyone know how to do that?
Best,
Anna
Comment