Hi,
I am fairly new to this forum so please excuse me if I do not follow some guidelines I am not aware of.
My question is for a dataset that contains variables such as Reported Income, Region etc.
I want to create a rank variable between 0 and 1. Essentially I would like to rank all the incomes into a reference group (lowest to highest so that 1 will be the highest income) and divide that number by the total number in the reference group.
My reference group is region, so for example all in London, all in Wales etc.
Related Posts with Rank Variable for Income, then further for region
Writing a formula in which stata chooses a value or 1Hi! I'm trying to use this formula to calculate eGFR: eGFR = 142*min(standardized Scr/K, 1)^α *max(…
please help. making bar graph more simple with "over" optionsHi, guys. I'm a newcomers with stata, and there is some trouble in making bar graph. My data has 4…
Adding rows under a variableStata command for adding rows lets say 10 rows under a variable which has fixed observations like 40…
Callagain command by Behaghel et al.Hi I'm currently trying to run the command "callagain" by Behaghel et al. (to be found here). Unfor…
Please help cant work out how to t-test. Im new to stataHi guys I'm struggling to compare 2 different regions with a t-test. As seen from the screenshots I…
Subscribe to:
Post Comments (Atom)
0 Response to Rank Variable for Income, then further for region
Post a Comment