Skip to content
Prev 12965 / 20628 Next

Autoregressive covariance structure for lme object and R/SAS

Andreas
 You state:
observation that AIC values (in SAS) indicate both covariance structures fit
data equally well.

The lme model includes both random subject effects and an CAR1 process so
this last process is on the residuals adjusting for subject random effect
estimates. Is the SAS model equivalent? The above statement implies its
either random subject effects fitted or a CAR1 error process but not both
together. The summary(m2) in terms of the error model variance
component/parameters could be compared to the SAS output. Also you could
plot the sample/theoretical variograms with the R-code below. My experience
with lme suggested to me that you have to have subjects ("id") as a random
effect when fitting corCAR1(form=~x|id) but there may be a way around this
restriction. 

vg.01 <- Variogram(m2, form = ~ x|id)
plot(y= vg.01$variog , x= vg.01$dist)
# extract Phi (or set its value to output value)
# over-plot the fitted CAR1 model 
lines(y=(1-Phi^(seq(1,length(vg.01$dist)))), x=seq(1,length(vg.01$dist)),
lwd=2)


Dr Steven G. Candy
Director/Consultant
SCANDY STATISTICAL MODELLING PTY LTD
welcomed.
------------------------------

Subject: Digest Footer

_______________________________________________
R-sig-mixed-models mailing list
R-sig-mixed-models at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models


------------------------------

End of R-sig-mixed-models Digest, Vol 98, Issue 14