Skip to content
Prev 11743 / 398502 Next

contrasts in lm and lme

"Peter B. Mandeville" <mandevip at deimos.tc.uaslp.mx> writes:
Are you reading the output correctly? Sum contrasts are the ones that
sum to zero, so you get k-1 values and the k-th one is minus the sum
of the others. One result of this is that the test of each individual
coefficient is meaningless (whether a group level is equal to the
average of all group levels). 


If the process is repeated with lme in place of lm with
in place of
...
I think the model is contrast independent when specified like that.
(But you have a typo in the command, so that's not what you ran...)
Looks like there might a convergence problem with the sum and helmert
contrasts, although they are the ones normally considered numerically
more stable. Do the variance estimates look similar?
Same as before I think.