Hello All,
I'm using a corruption index as an explanatory variable, This index ranks countries from 0 to 100, where 100 is the least corrupt. Instead of using the index in its current form, I'm interested in creating a dummy variable for the 25th percentile. The dummy would take the value of 1 if the country is ranked among the most corrupt (bottom 25%) and 0 otherwise.
I've found different codes online, but they all seem to be more complex than needed and don't quite work with my data.
I'd highly appreciate any help.
Best wishes,
Henry
I'm using a corruption index as an explanatory variable, This index ranks countries from 0 to 100, where 100 is the least corrupt. Instead of using the index in its current form, I'm interested in creating a dummy variable for the 25th percentile. The dummy would take the value of 1 if the country is ranked among the most corrupt (bottom 25%) and 0 otherwise.
I've found different codes online, but they all seem to be more complex than needed and don't quite work with my data.
I'd highly appreciate any help.
Best wishes,
Henry
Comment