Good morning,
I am writing some program that is working on data that is -xtset-. In the program I need to refer to the panel variable, and the time variable, that has been set.
Now I am calling -xtset- and it leaves behind macros r(panelvar) and r(timevar), and I refer to those macros.
The problem is that as soon as I move my little finger, the return list left behind by -xtset- disappears and I need to call -xtset- again and again.
Is there not some more elegant way to directly access the panel and time variable set in my data?
Looking at the code of -xtset-, it seems that it is retrieving the panel and time variables from _dta[iis] and _dta[_TSpanel]... Am I right? Is that where it is getting the information?
If so, what are those _dta[iis] and _dta[_TSpanel], how can I access them and use them directly, and where can I read more about them?
Related Posts with How can I access, and refer to the panel and time variable in a dataset that has been -xtset- ?
Nationwide inpatient sampleHi everyone, I started to learn STATA for my NIS data analysis recently. I have no experience of us…
Dividing data into periods and then groupsHi! I want to divide my panel data into different cross-sectional data of each group, and then divi…
interpreting interaction effects continuous by categorical variablesHi all, I am having difficulty to interpret interaction effects. I watched some videos and read for…
Calculating egfr using creatinineDear users Can you please someone share their experience of using the stata module written by phil …
Adjusting the Scale of Cluster GraphHey everybody, I am currently conducting a cluster analysis in Stata and I have a small problem. As…
Subscribe to:
Post Comments (Atom)
0 Response to How can I access, and refer to the panel and time variable in a dataset that has been -xtset- ?
Post a Comment