Standarized residuals in SPSS not maching R rstandard(lm())
问题 While looking for a R related solution I found some inconsistency between R and SPSS (ver. 24) in computing standardized residuals in a simple linear model. It appears that what SPSS calls standarized residuals matches R studentized residuals I'm far for assuming there is a software bug somewhere, but clearly things differ between those two programs. Have a look at this example #generate data in R set.seed(111) y = rnorm(20, 0, 1) x = rnorm(20, 1, 1) #calculate and standarized residuals