Hello How can we find duplicates in a database? Which command I can use to change the observations of a variable. for example Occupation variable 1 = driver 2 = doctor 3 = teacher 4 = architect 5 = seller I would like it to follow this order closely 1 which becomes 2 3 which becomes 4 So change the values and not the labels.
Related Posts with Recode Var
Calculate median collecting observations from different variables in wide formatDear all, my data structure looks like this. good 1 price 1 good 2 price 2 etc. milk 43 egg 4…
Limit replace observations for n yearsDear All, I have the following data: Code: * Example generated by -dataex-. To install: ssc inst…
Simpson paradox, how to visualize positive tendency when the coefficient doesnt outweigh absolute coefficient of the neg. general tendency?Hi everyone, I would like to have your opinion of the following. I am performing a regression on th…
Expanding Observations on Panel dataI have the following data: Code: * Example generated by -dataex-. To install: ssc install dataex …
Problem with generating and replacing variableHi, I have written the following code but I am facing a lot of problems. Code: gen tetns_inj=. …
Subscribe to:
Post Comments (Atom)
0 Response to Recode Var
Post a Comment