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

posted by Aceto81 – Belgium, 2009-05-26 12:28 (6223 d 05:58 ago) – Posting: # 3760
Views: 13,741

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;
138 visitors (0 registered, 138 guests [including 28 identified bots]).
Forum time: 18:26 CEST (Europe/Vienna)

The epistemological value of probability theory is based on the fact
that chance phenomena, considered collectively and on a grand scale,
create non-random regularity.    Andrey Kolmogorov

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