Message-ID: <CAC8=1ep3vCsYwgud+OtqDM1C1x1r0khgbfmMrr6+TiZQTfz-eQ@mail.gmail.com>
Date: 2016-06-19T02:48:14Z
From: Ashim Kapoor
Subject: relevel for sigma constraint
Dear all,
For treatment contrasts I would :
library(car)
data(Prestige)
attach(Prestige)
levels(type)
contrasts(type) <-contr.treatment(levels(type),base =2 )
Alternatively to change my level I would do :-
type = relevel(type,ref="prof")
Now I want the sigma constraint.
For this the LAST level ( the one whose mean is not computed and is equal
to -alpha1 - alpha2 (where alpha's are the mean of group i ) is to be set.
How do I set that ?
Best Regards,
Ashim
[[alternative HTML version deleted]]