Hi,
I am running a rank-rank regression using percentages of rank. I am trying to create percentile ranks on log wage. However, when I run the codes, I fail to get a value between zero and one. I have tried to follow this guide but this has not worked for me: https://www.stata.com/support/faqs/s...ing-positions/
The codes that I have tried and the output that I am getting:
I am running a rank-rank regression using percentages of rank. I am trying to create percentile ranks on log wage. However, when I run the codes, I fail to get a value between zero and one. I have tried to follow this guide but this has not worked for me: https://www.stata.com/support/faqs/s...ing-positions/
The codes that I have tried and the output that I am getting:
Code:
egen r1_log_hourly_wage = rank(log_hourly_wage)
egen r1_log_hourly_wage = rank(-log_hourly_wage)
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(log_hourly_wage r1_log_hourly_wage)
. .
. .
. .
3.653033 16066
. .
. .
. .
. .
3.077669 12159
. .
. .
. .
. .
. .
. .
. .
3.077669 12159
. .
. .
3.077669 12159
3.077669 12159
3.077669 12159
. .
. .
. .
. .
. .
. .
3.588495 15754.5
. .
. .
. .
. .
. .
2.959886 11042
. .
3.077669 12159
3.077669 12159
. .
. .
3.18303 12782.5
. .
. .
. .
. .
. .
2.554421 6631
2.554421 6631
. .
. .
2.826355 9375.5
. .
. .
. .
. .
. .
2.554421 6631
. .
. .
2.554421 6631
2.554421 6631
. .
. .
3.2112005 12932
. .
. .
. .
3.758394 16423
1.504599 312
. .
. .
2.842103 9500
. .
. .
. .
2.2549045 2772
end

Comment