calculate residual standard error - Search