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

posted by Aceto81 – Belgium, 2009-05-26 12:28 (5867 d 03:35 ago) – Posting: # 3760
Views: 11,511

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,671 registered users;
26 visitors (0 registered, 26 guests [including 19 identified bots]).
Forum time: 16:03 CEST (Europe/Vienna)

Truth and clarity are complementary.    Niels Bohr

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