Let's skip the fancy nesting syntax! [🇷 for BE/BA]

posted by ElMaestro  – Denmark, 2009-08-27 00:46 (5718 d 05:02 ago) – Posting: # 4120
Views: 12,843

Hi,

❝ Thanks for your interesting and great posting. Could you tell me where you got this? Many thanks.


❝ ❝ than "Subj : Seq" (example here). Subjects nested in Sequences is just the same as Sequences nested in Subjects to a numbercruncher (...)


This is something I have arrived at after trying to understand how model matrices conceptually work and how they are used for least squares modeling.
Our model is Y=Xb + e in matrix notation, where X is the model matrix and b is the vector of model coefficients.

With simplest contrast coding you can consider X a matrix of zeros and ones (yes yes, there are other contrasts available, but for simplicity I will only work with 0 and 1 here). For each datapoint (AUC-value etc) there is a row in X, and for each coefficient we want estimated, there is in principle a column (but as written before there is reduction of some redundancies). Let's say a column corresponds to the coefficient for the Subj X in sequence Y. We will then only put two ones in that column, namely in the rows that correspond to data obatined by the Xth subject in the Yth sequence, and we will put a zero in all other rows in that column. And so forth (in order to grasp this is it a good idea also to see how a matrix (like X) is multiplied with a vector (like b)). Generally, we put a 1 in the row when the desired levels of both factors are present, and that is exactly the same way interactions are specified.

Best regards
EM.

Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,670 registered users;
28 visitors (0 registered, 28 guests [including 6 identified bots]).
Forum time: 05:48 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