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
Problem running synth_runner commandHi there! I'm having problems running synth_runner command. There are various treated units giving a…
Coding participants with metabolic syndromeHi there, I would like to categorize participants in a dataset that I am using by whether or not th…
Egen with an if statementHi, I have a long dataset with multiple observations per patient id. I’m trying to generate a medic…
Problem in labels with splitvallabels Hi all, I am having problems in labelling graph with splitvallabels and catplot, I suspect that the…
Remove combination of quotes and asterisk in variable labelHi all, I have a extrange combination of quotes and asterisk in variable label in my data base... L…
Subscribe to:
Post Comments (Atom)
0 Response to Xtset and string variables
Post a Comment