I am trying to make a bar graph of the mean heights over different age groups and over different sexes. I can get the mean height for each age group using "tab Age, sum(Height)" or using "mean(Height), over(Age)" but when I try to do "mean(Height), over(Age), over(Sex)" I get an error. I've also tried doing "graph bar Height, over(Age), by(Sex)" but that also gave me an error. Can someone help me to separate my data by sex and then find the mean heights for each age? I basically need one graph showing the mean heights for females at each age, and another showing the mean heights for males at each age. Thanks!
-
Login or Register
- Log in with
Comment