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
Percentage width of the CalipmatchHi I am trying to match treatment and controls on ROA using calipmatch. However, I'm still new to th…
Problem with lag variableDear Statalists, how do I generate a lag variable which is the same for all years. Code: * Example…
Request for supportDear Sir/Madam, Good afternoon I used for my meta analysis, the command "metaprop case samplesize,ra…
pooled OLS, random effects or fixed effectsHi guys, I have several questions regarding the proper use of model for my data. I have panel data …
Question about the command selectvarsDear all, I get an error when running the command selectvars. What's wrong with this? Code: sysuse …
Subscribe to:
Post Comments (Atom)
0 Response to Changing variable's value by frequency order
Post a Comment