Hello everyone!
I have surely really amateur questions, but I am struggling with a simple cross-sectional analysis. I am fairly new to STATA and have been reading a lot but guess I only get more confused the more I read/watch on Youtube.
I tell you my case:
In my sample I have 150 pension funds with quarterly observations of returns, funding ratio and invested capital from 2015 - 2020. So time-series-wise only 24 observations, however I have a good amount cross-section-wise (150).
Now what I do have is I have one datasheet where I basically have the different quarters in the header, so basically each quarter (Q12015, Q22015 etc) is a new variable (table view, see below). And I have the same data but where I just have the variable "Period" and under this variable all the quarters repeatedly per fund. Firstly, I am unsure which one of these two sets is better for me. I want to make like plots of the performance (returns/funding ratio quarterly) per fund over time, so that I can observe differences. In order to do so, I am unsure which dataset to use, as both ways I get no nice plots - maybe because of the 150 funds or maybe because I miss to somehow sort or group them..
"Tabel-view":

Other view:

Additionally, I was wondering how I can easily do a cross-sectional regression to detect (reasons) differences in my cross section. I thought of dividing my sample into fractiles,
Sorry for this probably rather beginner's questions.. but any help is highly appreciated. I have been trying to figure this out for hours.
Thanks a lot in adavance already!
Marina
I have surely really amateur questions, but I am struggling with a simple cross-sectional analysis. I am fairly new to STATA and have been reading a lot but guess I only get more confused the more I read/watch on Youtube.
I tell you my case:
In my sample I have 150 pension funds with quarterly observations of returns, funding ratio and invested capital from 2015 - 2020. So time-series-wise only 24 observations, however I have a good amount cross-section-wise (150).
Now what I do have is I have one datasheet where I basically have the different quarters in the header, so basically each quarter (Q12015, Q22015 etc) is a new variable (table view, see below). And I have the same data but where I just have the variable "Period" and under this variable all the quarters repeatedly per fund. Firstly, I am unsure which one of these two sets is better for me. I want to make like plots of the performance (returns/funding ratio quarterly) per fund over time, so that I can observe differences. In order to do so, I am unsure which dataset to use, as both ways I get no nice plots - maybe because of the 150 funds or maybe because I miss to somehow sort or group them..
"Tabel-view":
Other view:
Additionally, I was wondering how I can easily do a cross-sectional regression to detect (reasons) differences in my cross section. I thought of dividing my sample into fractiles,
Sorry for this probably rather beginner's questions.. but any help is highly appreciated. I have been trying to figure this out for hours.
Thanks a lot in adavance already!
Marina
Comment