Dear all,
I have a panel which looks like this:
panel variable: Countryid (unbalanced)
time variable: Year, 1995 to 2015
delta: 1 unit
Usually, I open a do file I've saved from previous sessions, which first generates several variables and then sets the data as a panel wih xtset Countryid Year.
I just noticed that the fact that I'm using xtset only after my variables are generated makes stata modify these said variables (they take new values once I use xtset).
Is it normal? Should I start using xtset before I generate these variables?
Thank you in advance!
I have a panel which looks like this:
panel variable: Countryid (unbalanced)
time variable: Year, 1995 to 2015
delta: 1 unit
Usually, I open a do file I've saved from previous sessions, which first generates several variables and then sets the data as a panel wih xtset Countryid Year.
I just noticed that the fact that I'm using xtset only after my variables are generated makes stata modify these said variables (they take new values once I use xtset).
Is it normal? Should I start using xtset before I generate these variables?
Thank you in advance!
Comment