Skip to content
Prev 31697 / 63424 Next

quantile(), IQR() and median() for factors

Yes I have discussed right continuous, left continous, etc. definitions for the median in numeric data.  I was just curious what the discussion was in texts that cover quantiles/medians of ordered categorical data in detail.

I do not expect Low.5 as computer output for the median (but Low.Medium does make sense in a way).  Back in my theory classes when we actually needed a firm definition I remember using the left continuous mainly (Low for the example), but I don't remember why we chose that over the right continuous version, probably just the teachers/books preference (I do remember it made things simpler than using the average of the middle 2 when n was even).