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
Omitted period dummies in GMM xtabondThis paper contains a short panel data set with 69 cross-sectional countries and 5 periods length co…
Sum from multiple variablesPlease advise syntax for obtaining the total from multiple variables (T1worst_ethos90 T2worst_ethos9…
Occupation, education and college cohort fixed effectsI hope someone can help me with this issue in estimating the below model The model includes : The …
Frequency table with value labelsDear all, I want to create a frequency table, with frequency of open ended and close ended question…
markdown headersDear All, working with markdown command, I am puzzled why the headers, such as Code: # Example are…
Subscribe to:
Post Comments (Atom)
0 Response to String variable with nonnumeric and numeric categories
Post a Comment