Hello,
A stata Newbie here. Please be gentle![Smile]()
I have a panel data set with for 60 firms/10 years, i.e. 600 observations.
The 60 firms are from 3 sectors (20 each).
I am using xtsum to get a description of the overall, within and between variation. However, I would like to to "xtsum" separately for all three sectors. Is that somehow possible?
I have a sector variable in my xlist (1, 2, 3) and since its just 60 firms I also know "manually" which firm is in which sector.
Is there any way that I can "split up" xtsum according to the sectors? Other than creating 3 separate panels and xtsumming them one by one?
I see often in research papers that they have tables with "panel A, panel B, panel C"... thats kind of what I am trying to do.
Thanks for any help
A stata Newbie here. Please be gentle

I have a panel data set with for 60 firms/10 years, i.e. 600 observations.
The 60 firms are from 3 sectors (20 each).
I am using xtsum to get a description of the overall, within and between variation. However, I would like to to "xtsum" separately for all three sectors. Is that somehow possible?
I have a sector variable in my xlist (1, 2, 3) and since its just 60 firms I also know "manually" which firm is in which sector.
Is there any way that I can "split up" xtsum according to the sectors? Other than creating 3 separate panels and xtsumming them one by one?
I see often in research papers that they have tables with "panel A, panel B, panel C"... thats kind of what I am trying to do.
Thanks for any help