[R] Mixed Modeling in lme4

2013-04-30 Thread Indrajit Sengupta
Hi All, I am trying to shift from running mixed models in SAS using PROC MIXED to using lme4 package in R. In trying to match the coefficients of R output to that of SAS output, I came across this problem. The dataset I am using is this one:

Re: [R] Mixed Modeling in lme4

2013-04-30 Thread Joshua Wiley
Hi Indrajit, In your first SAS code, change to type=un. cs imposes the (somewhat dubious) assumption that the variance of both the intercept and slope are equal. If you are using lme4, all random effects in a single block (e.g., (1 + month | batch) the 1 = intercept and month = random slope)

Re: [R] Mixed Modeling in lme4

2013-04-30 Thread Indrajit Sengupta
Thanks a lot Joshua. Regards, Indrajit On Tue, Apr 30, 2013 at 1:13 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi Indrajit, In your first SAS code, change to type=un. cs imposes the (somewhat dubious) assumption that the variance of both the intercept and slope are equal. If you are