Hi, i have a variable x with 5 values (assume 1 to 5). When I do tab x I have that the value with higher frequency is 2 and the next value with higher frequency is 5. I want to recode 2 as 1, 5 as 2, and so on for all the values of my variable. Clearly I have to do that with many variables, that's why I cannot do it manually.
Related Posts with Changing variable's value by frequency order
cluster 2 varlist not allowedHi, I'm replicating a report, and this is the attached do-file use wintertime_final, clear gen snod…
Testing for significant differences between the betas of two FE model specifications without using an interaction termGood morning all, I am using 2-wave panel data and a standard fixed effects model to estimate the m…
Specific Values of Variables and creating a new VariableHello, I am trying to takes 3 variables and take a specific value from that variable, and create a …
First Difference of a Variable with RangestatHi, Is it possible to take the first difference (x - x[_n-1]) of a variable using Rangestat or with …
how to count numbers of households expose to a specific shock?Dear all, I need your help in the following issue in coding my data. I have a data set for a year …
Subscribe to:
Post Comments (Atom)
0 Response to Changing variable's value by frequency order
Post a Comment