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

posted by Aceto81 – Belgium, 2009-05-26 12:28 (6233 d 14:19 ago) – Posting: # 3760
Views: 13,792

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,655 posts in 4,993 threads, 1,570 registered users;
150 visitors (0 registered, 150 guests [including 13 identified bots]).
Forum time: 02:48 CEST (Europe/Vienna)

I have finally come to the konklusion
that a good reliable set ov bowels
iz worth more to a man
than enny quantity of brains.    Josh Billings

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