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
Why GEE is marginal model and GLMM is conditional model?Hi, I‘m a beginner of GEE and GLMM. In recent day, I read some books and materials about GEE. In thi…
Export results of -table- (Flexible table of summary statistics)Hi, I have a fairly complicated table of summary statistics that I would like to export to LaTeX au…
Propensity score matching - time variant treatmentDear all, I have a question about propensity score matching for a panel data file. The aim of my stu…
Including a binned variable in an OLS regressionProblem solved, however I cannot delete my question.. …
Cross-fold validation in two part models (health economics example)Dear statalisters, I am currently trying to develop a mapping algorithm from the EQ-5D-5L to a dise…
Subscribe to:
Post Comments (Atom)
0 Response to Reverse Command
Post a Comment