added median and median absolute deviation for absolute and index values