Standardized (Pearson) residuals

˜ri=riVar(ri)

where Var(ri) is the estimated variance of the residual ri.

Model Estimation Method
Classical linear-regression model The design matrix.
Poisson regression The expected value of the count.
Complicated models A constant for all residuals.