Re: [R] R lmer & SAS glimmix

2012-11-12 Thread Bert Gunter
It's due to the different coding of contrasts. Post to R-sig-mixed models for a fuller explanation (though it has nothing to do with mixed models; the same would happen with lm) or search on a suitable phrase (e.g. contrast coding in SAS versus R) in R archives or via google etc. -- Bert On Mon,

[R] R lmer & SAS glimmix

2012-11-12 Thread Sophie GUERIN
Hi, I am trying to fit a model with lmer in R and proc glimmix in SAS. I have simplified my code but I am surprised to see I get different results from the two softwares. My R code is : lmer(y~age_cat + (1|cat),data=fic,family=binomial(link = "logit"), NaGQ=1) My SAS code is : ods output Gl