This is exactly what I've been looking for (without success)
when I was speaking about a more elegant and general solution.
I agree with your argument that labels might be misleading.
Nevertheless if a user is aware what contr.sum calculates, it is
practical to have an annotation.
Thank you v
One way to do this generally is to make a copy of contr.sum, rename it,
and set the dimnames appropriately.
I think contr.treatment is misleading (it labels contrasts of two levels
by just one of them), and Christoph's labels are informative but
impractically long. But if you want to label eac
Dear Ghislain
I do not know a general elegant solution, but for some
applications the following example may be helpful:
## Artificial data for demonstration: group is fixed, species is random
dat <- data.frame(group = c(rep("A",20),rep("B",17),rep("C",24)),
species = c(rep("sp1
Good morning,
I used in R contr.sum for the contrast in a lme model:
> options(contrasts=c("contr.sum","contr.poly"))
> Septo5.lme<-lme(Septo~Variete+DateSemi,Data4.Iso,random=~1|LieuDit)
> intervals(Septo5.lme)$fixed
lower est. upper
(Intercept) 17.0644033 23.106110 29.147816
Variete1 9.5819873