Type III SS again [🇷 for BE/BA]

posted by ElMaestro  – Denmark, 2009-09-07 17:47 (5706 d 12:11 ago) – Posting: # 4158
Views: 12,790

Dear yjlee,

❝ Why we do use ":" in R? for nesting purpose, I suppose.


Strictly, as explained before, it is fo interactions. They just happen to have the same meaning as nesting to the model matrix.


❝ Type III SS

❝ Single term deletions


❝ Model:

❝ Cmax ~ seq + prd + drug + subj

❝ Df Sum of Sq RSS AIC F value Pr(F)

❝ <none> 514123 307

seq 0 2.328e-10 514123 307 (do we need this?)


❝ prd 1 37889 552013 307 0.8844 0.3656

❝ drug 1 88706 602830 309 2.0705 0.1757

❝ subj(seq) 12 719310 1233434 307 1.3991 0.2849



As noted elsewhere, the type III SS for a given factor are calculated by fitting the full model and then fitting the full model minus the factor in question and noting the difference between the two residual SS.
When we want type III SS for the Sequence factor, R fits the full model and then a model without Sequence as a factor and then compares the difference in residuals. In your case it is a number very close to zero. It always will be when the single-term-deletion strategy is followed.
This is because the model without Sequence as a factor includes Subjects. The subjects are "nested in sequence" (no pun intended!), so your sequence effect becomes effectively zero* (or to say it differently: you cannot include the subjects without also including the sequence, so in the model without the explicit inclusion of Sequence you have Subjects and therefore Sequence is included implicitly). SAS is clever enough to figure this one out by itself and fiddle with the inclusions.

So in summary: Type III SS are generally calculated by single term deletions. However, uncritical use of single term deletions may result in odd stufff or nested data. R does it un critically, SAS does some clever work for you, and therefore the SAS type III output differs from R's drop1 output.

EM.


Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,670 registered users;
32 visitors (0 registered, 32 guests [including 10 identified bots]).
Forum time: 05:58 CEST (Europe/Vienna)

The difference between a surrogate and a true endpoint
is like the difference between a cheque and cash.
You can get the cheque earlier but then,
of course, it might bounce.    Stephen Senn

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