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- ?
custom xline value per group in xtlineHi. I'm trying to produce a graph for each US state using -xtline- and the -xline- option (Stata 15.…
How to superimpose grid on a mapHello Everyone I am trying to superimpose grid on my map in stata. I could not find proper way of do…
Tabulating across variables after using multencodeHi Everyone, I have a string variable that contains multi-picklist values separated by a semi-colon…
Combining graphs from a loopHi, I am making histograms using the following command that I want to loop for 122 countries, Code…
Rotating category axis labels and reversing scale using catplotHi everyone, I am using catplot from SSC in Stata 17 on Windows. I am using the following code to c…
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