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
Assistance with dow commandHello, I am working with a dataset from 2016 and would like to identify the day of the week from the…
Problem to replicate anova with mvreg Dear Stata listers I'm a little confused. I want to calculate a manova with imputed data (mi e…
Looping over observationHi, I want to run one-sample test of proportion using following data and save p-val for each obs. pr…
log transformationAs i am not a statistician i have a naive question. i have 50 dependent variables that i want to reg…
gsem fail to converge with cov optionHello everyone, I try to estimate a generalized structural equation model. I have multilevel data (…
Subscribe to:
Post Comments (Atom)
0 Response to String variable with nonnumeric and numeric categories
Post a Comment