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
Adaptive Gauss-Hermite QuadratureHi everyone, I am practising using the adaptive quadrature to programme the (log-) likelihood funct…
missing valures imputationHi all, I am trying to impute my missing values but i i get an error message i can't figure out what…
transforming then imputing or vice-versaHi all, I was wondering whether it is better to transform the data then impute the missing values or…
Could I winsorise at 1% and 99% levels for a sample of 500 observations?Dear all, I have a sample of 500 observations. I detect some outliers of my dependent variable. …
Should I use Fixed Effect when using data of population?Good Afternoon, everyone. I would like to ask about choosing the right model when we use data of po…
Subscribe to:
Post Comments (Atom)
0 Response to String variable with nonnumeric and numeric categories
Post a Comment