Hi all,
Sometimes I have to deal with panel data with several cross-section units (i=1..., I), time series (y,1...., Y), and variables (v1,.....vN).
When processing the data, it is common for me to consolidate the data (i.e., calculations that include grouping cross-section units for a specific time). I do it storing the results using scalars inside loops. If instead of scalars, I would use variables, the problem is that values of the calculations are repeated along the time-series dimension, instead of just one single value. However, when I have to retrieve the values from the scalars after closing the Stata session, I should rerun the commands because, as you know scalars are only for each session.
Here my question, do you have any advice on how to deal (what kind of storage option do you recommend to use) when you are going from one dimension of the panel to another and you need to keep the results for later?
Thank you very much.
Sometimes I have to deal with panel data with several cross-section units (i=1..., I), time series (y,1...., Y), and variables (v1,.....vN).
When processing the data, it is common for me to consolidate the data (i.e., calculations that include grouping cross-section units for a specific time). I do it storing the results using scalars inside loops. If instead of scalars, I would use variables, the problem is that values of the calculations are repeated along the time-series dimension, instead of just one single value. However, when I have to retrieve the values from the scalars after closing the Stata session, I should rerun the commands because, as you know scalars are only for each session.
Here my question, do you have any advice on how to deal (what kind of storage option do you recommend to use) when you are going from one dimension of the panel to another and you need to keep the results for later?
Thank you very much.
Comment