Studentized & standardized residuals [Outliers]

posted by Helmut Homepage – Vienna, Austria, 2020-03-13 12:21 (1735 d 01:49 ago) – Posting: # 21267
Views: 5,164

Hi UdayK,

❝ […] outlier test using Phoenix WinNonlin Software (Studentized residual method) and R-Software (code) in the Bioequivalence 2way cross design.


“Studentized residual” is an ambiguous term. There are two flavors:
  1. Internally studentized (aka “standardized”), where
    \(\widehat{\sigma}^2={1 \over n-m}\sum_{j=1}^n \widehat{\varepsilon\,}_j^{\,2}\)
  2. Externally studentized, where
    \(\widehat{\sigma}_{(i)}^2={1 \over n-m-1}\sum_{\begin{smallmatrix}j = 1\\j \ne i\end{smallmatrix}}^n \widehat{\varepsilon\,}_j^{\,2}\)
#1 is easily accessible in Phoenix WinNonlin (divide the raw residual by the standard error). Assess only the first period. The value of the other period has the same value but with the opposite sign and is therefore, not informative. No idea how to get #2 In WinNonlin. Ask at Certara’s forum.
Both are easily obtained in SAS, R,…

In R for the fixed effects model (untested!):

mod  <- lm(log(PK) ~ sequence + subject%in%sequence + period + treatment,
                     data = yourdata)
res1 <- rstandard(mod) # 1. Internally studentized (standardized)
res2 <- rstudent(mod)  # 2. Externally studentized

Note that #2 is in general more restrictive than #1, i.e., it might be that you detect more outliers.
BTW, which outlier test are you thinking of? See also there and this thread at stackoverflow.

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
Activity
 Admin contact
23,336 posts in 4,902 threads, 1,669 registered users;
43 visitors (0 registered, 43 guests [including 12 identified bots]).
Forum time: 14:10 CET (Europe/Vienna)

Biostatistician. One who has neither the intellect for mathematics
nor the commitment for medicine but likes to dabble in both.    Stephen Senn

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5