Hi all,
I have the following problem. I am trying to recode values of a variable conditioning on given vales of another variable as follows:
recode dup_cc (0=-1) if pag_indici_all_2007!=.
The recode command gives 0 changes.
Any idea on why it does not work?
Thank you in advance.
Rezart
Related Posts with Recode with if does not work
How to identify oldest children with highest education?Dear all, I have a household data and I want to generate a variable indicating year of birth of a c…
skewed-Normal GARCH Estimation Using ml command.Dear Statalist, I'm trying to generate conditional skewness and kurtosis by using Gram-Charlier Exp…
Split a string variable into character and numeric partsHi, I have a string variable (profile) in my dataset which includes prefixes of H, W, B and the suff…
Change reference category of dependent variableHi, I am running the following code mlogit cq25 i.group [pweight = cq25pp], rrr The dependent var…
Identifying partial name overlap in string variablesHi. I have two datasets with the variable “Product”, the name of different pharma drugs. I am trying…
Subscribe to:
Post Comments (Atom)
0 Response to Recode with if does not work
Post a Comment