civilstat / RankingProject

R package {RankingProject}: visualizations for comparing populations, and associated papers (https://doi.org/10.1080/00031305.2017.1392359 and https://doi.org/10.1111/rssc.12402)
6 stars 0 forks source link

Allow unsorted estimates #8

Open civilstat opened 6 years ago

civilstat commented 6 years ago

If the categories are not geographies but have a natural sorting order (e.g. Size of firm, Age of firm, etc.), it may make more sense to sort by the category than by the values of thetahat in each category.

civilstat commented 2 years ago

Related: Make a function argument for choosing whether or not the software should re-sort the rankings for you. Right now, it does NOT re-sort the rankings... but (I believe) part of the code ASSUMES they are already sorted. At the very least, it should give you a warning if the data you give it aren't sorted. Better yet, that code should be revised to handle data in any order; and you should be given an explicit option to re-sort or to use the existing ordering in the data.