Hey!
I am trying to check the variance of one of my variables by age of the individuals. I have a cross-section, not a panel. I would like to do something like:
egen varxx = var(xx) , by(age)
in the same way that you can do this for the mean. Is it possible to find a similar command?
Thanks in advance!
I am trying to check the variance of one of my variables by age of the individuals. I have a cross-section, not a panel. I would like to do something like:
egen varxx = var(xx) , by(age)
in the same way that you can do this for the mean. Is it possible to find a similar command?
Thanks in advance!
Comment