Gets the average empirical distribution for a set of samples.
1 2 3 4
vector of length equal to the longest
Missing values are excluded.
Parts adopted from Gordon Smyth (http://www.statsci.org/) in 2002 \& 2006. Original code by Ben Bolstad at Statistics Department, University of California.