Re: [R] How to specified contrasts in anova (lm)

2015-07-01 Thread Davide Risso
k. > > ?contrasts ## what else! > ?C > > for details. > > Beyond this, I cannot help. > > -- Bert > > Bert Gunter > > "Data is not information. Information is not knowledge. And knowledge > is certainly not wisdom." >-- Clifford Stoll > >

Re: [R] How to specified contrasts in anova (lm)

2015-07-01 Thread Davide Risso
Hi Bert, I apologize for the HTML. I will pay more attention in the future. I know that the lm() command of my toy example fits the wrong model with a singular design, maybe I shouldn't have included it. I believe that the model with the additional constraint(s) is not garbage. But I don't know

[R] How to specified contrasts in anova (lm)

2015-07-01 Thread Davide Risso
wrong model, using two constraints (with the "contr.sum" specification), \sum_{i=1}^m \alpha_i = 0 and \sum_{j=1}^{n} \beta_{j} = 0, and resulting in a singular design matrix. Is there a way to specify the right constraints in lm? Thanks in advance for any help, davide -- Davide