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

posted by Aceto81 – Belgium, 2009-05-26 12:28 (5870 d 02:54 ago) – Posting: # 3760
Views: 11,519

There is another way:
first substract the intercept, then add an offset, which is always fit with coefficient 1:
If you take the mean as an offset, you get an error: "lengths differ", so if you use ave, you get:

lm(formula = lnY ~ Trt + Subj + Seq + Per - 1 + offset(ave(lnY)))

Ace

Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,672 registered users;
41 visitors (0 registered, 41 guests [including 10 identified bots]).
Forum time: 15:22 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