fixed incorrect calculation of gradient standard errors for single-index models