I have a string variable with 3 categories (0,1,NA). I would like to desiring the variable, and change NA to missing.
I also have a string variable with 3 categories (FALSE, TRUE, and NA). I would like to destring and change False=0, True=1 and NA=.
Any help with coding is appreciated.
Related Posts with String variable with nonnumeric and numeric categories
Difference in Difference estimates with binary variablesDear all I am struggling in understanding and analysing my data with the diff function & I hope…
Find corresponding X for a threshold of Y in estimated modelDear Statalist, I have estimated a model like this: elec= -12.83927*ldisp + .7345735*ldisp2 + (oth…
Where is program_name stored?Dear All, I have a program as follows: program BSE_02052018 version 12 syntax, MAINdirectory(str) …
Graphic illustration of 3-way interaction between dummy, ordinal, and metric variableHi I am currently looking into how the election of Trump (main independent variable) affected satis…
xtprobit with clustered standard errorsHi, I have panel data, with a binary dependent variable. The data is at the individual level. I want…
Subscribe to:
Post Comments (Atom)
0 Response to String variable with nonnumeric and numeric categories
Post a Comment