Mean as intercept; model matrices [🇷 for BE/BA]

posted by ElMaestro  – Denmark, 2009-05-21 16:30 (5875 d 02:44 ago) – Posting: # 3722
Views: 11,745

Hi Bears

Snot <- lm(lnY~Trt+Subj:Seq+Per+Seq) for a 2x2x2 ABE. It

❝ works o.k..


I guess you are right, but I think this is fishy. I could be wrong, but the colon as far as I understand from the manual is used for interactions?! Try and look at the model matrix with your syntax, where you will see columns filled with zeros. For example, with these data you will see a column called "Subj2:Seq2" which consists of all zeros, simply because Subj2 is assgined to Seq1 (and therefore the column called "Subj2:Seq1" has a few ones in it). A zero clumn is meaningless as it conveys no info to the fitting.

In my naïvity I just thought Subj%in%Seq would be better, and I just tried it, but that seems to result in the same phenomenon anyway. In both cases if you compare e.g. the column "Subj2:Seq1" with the "Subj2" column of the original fit, they are identical (and so forth). Therefore, in this case I think the explicit declaration of a nested factor in the model is not necessary.

EM.

Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,672 registered users;
54 visitors (0 registered, 54 guests [including 13 identified bots]).
Forum time: 19:15 CEST (Europe/Vienna)

Medical researches can be divided into two sorts:
those who think that meta is better and those
who believe that pooling is fooling.    Stephen Senn

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