I would like to generate a matrix that contains in the first column the average of a variable, grouped by year, something like what comes from
Code:
mean salary, over(year) cluster (region)
the fact is that I have never worked with matrices in stata and I don't know how to approach this whole operation. I am not even sure matrices are the best way to do this, indeed.
Any suggestion?
Thanks everyone.
0 Response to real salary matrix calculation
Post a Comment