[R-sig-eco] Fixing parameters in GLM and Mixed Effects Models

2009-09-24 Thread Hamish
Hello all. I am wondering if it is possible to fix some parameters within a glm(), lmer(), or lme() routine, but leave others to be optimized. I want to assess what the values for the free parameters would be as well as the overall model fit when using the fixed and free parameters in

Re: [R-sig-eco] Fixing parameters in GLM and Mixed Effects Models

2009-09-24 Thread Jari Oksanen
On 24/09/09 22:34 PM, Hamish hwil...@ucsd.edu wrote: I want to force a =1 and b= -1, yielding: N ~ 1*Mass + (-1)*Temp + c*Precipitation + {d,e,f,g}*DIET I think you want to have N ~ offset(Mass) + offset(-Temp) + Precipitation + DIET Most *lm functions know offset. However, you