Re: [R] LMER vs PROC MIXED estimates

2012-11-07 Thread sandip1006
Hi David, Thanks for the reply. sorry for typo in the R script ...what I meant to write was testdata <- read.csv("adstest.csv",header=TRUE,sep=",") attach(testdata) library(lme4) options(contrasts = c(factor = "contr.SAS",ordered = "contr.poly")) lmm.2=lmer(y~X1+X2+X3 + (X2|Geography),REML

[R] LMER vs PROC MIXED estimates

2012-11-06 Thread sandip1006
Hi experts, I have just about started to use R (after using SAS for more than 5 years) and still finding my way...I have been trying to replicate PROC MIXED results in LMER but noticed that the estimates are coming different. My SAS code is as follows (trying to randomise X2 and Intercept): PR