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 pcspike to display a paired plot with namesI am using Nick Cox's example code to produce a 'paired plot with names' as in Dr. Cox's "Speaking S…
Regression Discontinuity - manipulation test applying fweights problemDear Stata Users, I am trying to test for sorting of individuals across the threshold in an RD sett…
Coding variables with options "Yes" "No" and "Other"Hello all, I have what I believe should be a pretty simple problem but I'm getting tripped up, most…
Interactions with geographic variables to avoid loosing observations in a comparative analysisHi! I'm analyzing the association of different economic variables with the subjective well-being of…
melogit, xtmelogit, meglm with Bernoulli family to include survey weights in the modelDear colleagues, Does any one come across with an aides on how to include a survey weight into the …
Subscribe to:
Post Comments (Atom)
0 Response to Xtset and string variables
Post a Comment