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
command tabcount is unrecognizedHi everyone, I'm learning stata these days. I was trying to use tabcount but I get the following err…
Absorbing fixed effects using gsemI am trying to run a poisson fixed effects model using gsem. Basically I want to duplicate the resul…
Applying weights to mixed-effects logistic regression modelHello Statalist, I am trying to add weights to my mixed-effects logistic regression model. I could …
Unique Geographic Identifiers from Pooled Data SamplesHello, I am using pooled data from selected samples of DHS data. Each sample(country) has a set of …
How to calculate mean and 95%CI of willingness to pay (Discrete choice experiment)Hi everyone I am new in the forum. Hope one of you with expertise in choice experiments method can …
Subscribe to:
Post Comments (Atom)
0 Response to Changing variable's value by frequency order
Post a Comment