Hi all,
so i have a numeric variable with a lot of values, that are decimal:
4,626276
5,162374
5,612217
etc.
The lowest value is 4,626276 and the highest value is 79,43243.
Now, I want to reverse the variable so that it runs from highest to lowest (so that 79,43243 is the first value and 4,626276 the last value). I did it with the revrs command: revrs mcs_1st (mcs_1st is the name of the variable).
But now the problem: This isn't actually reversing the variable. So the new variable is the same as the old one.
So my question is? How can I reverse the variable without revrs? Is there a way?
I hope you understand what I mean.
Related Posts with Reverse a numeric variable
Re-arrange variablesDear all, I have 30 variables in different columns. Now I want Stata to generate one new variable w…
Count model with data panel ( poisson)Hi, I'm new here (and new to stata/statistical analysis) i need help with a count model with data pa…
Potential Stata (MLwiN/Estout) bug - Output of Odds Ratios' Significance Levels Hi all, I think I may have inadvertently stumbled upon a bug after using the runmlwin command for …
Mauchly's test of sphericity commandI am trying to test the assumption of sphericity for the purpose of running a repeated measures ANOV…
Marginal Effects on ivprobitI'm running an ivprobit model, and I'm trying to get marginal effects out of the second stage coeffi…
Subscribe to:
Post Comments (Atom)
0 Response to Reverse a numeric variable
Post a Comment