Re: [R] Re gression by groups questions

2009-06-18 Thread Chris Friedl
Thanks Xavier. That's exactly the solution. xavier.chardon wrote: > > Hi, > > It seems like your multivariate regression works for groups A and B. For > group C, values are calculated using an interaction between x1 and x2. Try > to include it in the regression model to find the right coeffs

Re: [R] Re gression by groups questions

2009-06-18 Thread Chris Friedl
pasting reply by Xavier into this thread for the sake of others who might come across it in their R travels. Thanks Xavier Hi, It seems like your multivariate regression works for groups A and B. For group C, values are calculated using an interaction between x1 and x2. Try to include it in the

Re: [R] Re gression by groups questions

2009-06-18 Thread xavier . chardon
Hi, It seems like your multivariate regression works for groups A and B. For group C, values are calculated using an interaction between x1 and x2. Try to include it in the regression model to find the right coeffs: y ~ grp:x1:x2 + grp:x1 + grp:x2 + grp - 1 It works for me. Notice in summary()