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

posted by Aceto81 – Belgium, 2009-05-26 12:28 (6227 d 06:32 ago) – Posting: # 3760
Views: 13,750

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,653 posts in 4,991 threads, 1,570 registered users;
103 visitors (0 registered, 103 guests [including 30 identified bots]).
Forum time: 19:01 CEST (Europe/Vienna)

To propose that poor design can be corrected by subtle analysis techniques
is contrary to good scientific thinking.    Stuart J. Pocock

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