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
Matching datesHi all, I need the iv_spread value of option expiration date (exdate) closest (during or after) to …
Identifying matched observations in a large databaseDear all, This is relevant to the question I asked some days ago and can be found here: I have enc…
Calcule Overlap between two variablesI need to calculate the overlap of two variables (time series). I saw that in R, the command is "cal…
Sample size for cox proportional hazards model with multiple covariatesThis is my first time using power cox, and I would like confirmation of my code. HTML Code: power…
Deciding between RE and FEI have a theoretical question concerning usage of the FE model for panel data regression. I'm curre…
Subscribe to:
Post Comments (Atom)
0 Response to String variable with nonnumeric and numeric categories
Post a Comment