Open civilstat opened 6 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.
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.