datalib
datalib copied to clipboard
Simple function for computing the IQM/midmean
Computes the interquartile mean of an array of numbers. If n%4==0, then simply discard the values in Q1 and Q4 and compute the mean of the remaining values. Otherwise, compute weighted average based on “fractional observations” near quartile borders.