I am working with panel data and I would like to calculate means for each of the crosssections for two different series. This is my solution:
Code: Select all
series meansby1=@meansby(series1,id)
series meansby2=@meansby(series2,id)
Since I would like to compare the means with each other, I open each of the series individually and then use view-descriptive statistics & test-stats by classification to bring up a table that shows the calculated means by id (since I put in "id" in the input field "series/group for classify" in the "statistics by classification" window).
That works ok, but I would like to compare the data in one table (first problem) and sort the means not by id but by the occurence of the crosssections in the original series (second problem).
To summarize: Is there a way to use the @meansby function, in order to compare the means of crosssections of different series in one single table and how can I sort the output by the occurence of the crosssections in the original series?
Thanks a lot in advance for suggestions and help.
