calcInSampleError.rtdata function

Calculate index errors in sample (rt approach)