I am trying to reverse the order of some categorical variables in my dataset. There was previously a command "revrs" that would do this automatically. However, this command appears to be unrecognized by the current version of STATA, STATABE. Does anyone know of a new command or a similar action to take? The data is coded 1-5, however, some of my variables are coded least to greatest while others are greatest to least, all with the same values coded just opposite orders. I know I could manually recode each variable, but I am looking for a quicker more efficient way to do so.
Related Posts with Reverse Command
Forloop to import multiple .sav files not workingHello all, would appreciate an advise on how i can fix the following line of commands to import/read…
causal mediation analysisHi, when performing causal mediation analysis, how do I get the value of proportion effect mediated?…
Why do ginidesc command yield different Gini coefficients when combined with the "if" qualifier?Dear Statlist users, I am using Stata 14.1. I am trying to estimate wage inequality (by Gini coeff…
forest plot for ST Cox HRHi! I`d like to build a forestplot of my stcox HR for many variables. I tried with ipdover, over (va…
reshape wide variable to long within long datasetHi, I have a long dataset that has a wide variable in it (loc). Loc represents location of work per…
Subscribe to:
Post Comments (Atom)
0 Response to Reverse Command
Post a Comment