Hi Everyone,
I am trying to set my data as a panel by using xtset command. I have uasid as identifier and year variables. When I use uasid, since it is a string variable my command doesn't work.
I did encode uasid to id to make sure I destring uasid. when I did that, I had the following problem on the attachement. After encoding, uasid and id do not match each other for each observations. How can I solve this problem?
Related Posts with Xtset and string variables
Help with SFA - sfpanel model BC95Dear Stata users, I am working on "the trade potential between China and Central and Eastern Europe…
Controlled interrupted time series with count data using glm, panel data, and Newey-West standard errorsHi, I am trying to conduct an interrupted time series analysis with an intervention group and a con…
How to use data in ARDL Bounds testThis is my first time to use Stata in fairly complicated research. Must the variables which are in l…
2SLS/ Interpreting Cragg-Donald Wald F statistic and Stock-Yogo weak ID test critical valuesHello, I am running a robustness check using 2SLS and was having trouble interpreting the Cragg-Dona…
Panel data replace all valuesHello! I'm fairly new to Stata 17, and Stata in general and I had a question about replacing all va…
Subscribe to:
Post Comments (Atom)
0 Response to Xtset and string variables
Post a Comment