Estimates measurement error for each data point of y by calculating the standard deviation of the nopts data points closest to that data point
Arguments – y: data - one column for each replicate nopts: number of points used to estimate error bars