14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

196 Fitting Generalized Linear Models Chapter 6<br />

Platform Comm<strong>and</strong>s<br />

Table 6.3 Residual Formulas<br />

Residual Type<br />

Deviance<br />

Studentized Deviance<br />

Pearson<br />

Studentized Pearson<br />

Formula<br />

r Di<br />

= d i<br />

( sign( y i<br />

– μ i<br />

))<br />

r Di<br />

=<br />

sign( y i<br />

– μ i<br />

) d<br />

-------------------------------------- i<br />

φ( 1 – h i<br />

)<br />

r Pi<br />

=<br />

( y i<br />

– μ i<br />

)<br />

-------------------<br />

V( μ i<br />

)<br />

r Pi<br />

=<br />

y i<br />

– μ<br />

------------------------------------ i<br />

V( μ i<br />

)( 1 – h i<br />

)<br />

where (y i – μ i ) is the raw residual, sign(y i – μ i ) is 1 if (y i – μ i ) is positive <strong>and</strong> -1 if (y i – μ i ) is negative, d i is the<br />

contribution to the total deviance from observation i, φ is the dispersion parameter, V(μ i ) is the variance<br />

function, <strong>and</strong> h i is the i th diagonal element of the matrix W e (1/2) X(X'W e X) -1 X'W e (1/2) , where W e is the<br />

weight matrix used in computing the expected information matrix. For additional information regarding<br />

residuals <strong>and</strong> generalized linear models, see “The GENMOD Procedure” in the <strong>SAS</strong>/STAT User Guide<br />

documentation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!