Re: [R] Covariance structure for lme

2012-06-30 Thread apcoble
This bit helped me to match lme results in R with SAS, try options(contrasts=c("contr.sum","contr.poly")) before lme model. -- View this message in context: http://r.789695.n4.nabble.com/Covariance-structure-for-lme-tp4630413p4635005.html Sent from the R help mailing list archive at Nab

Re: [R] Problem with NA data when computing standard error

2012-04-05 Thread apcoble
I found a rather easy solution that circumvents this problem by: 1) creating your own length function using na.omit function 2) calculating variance using tapply 3) calculating length using new length function 4) calculating square root of variance by length *Code from LeCzar:* object1<-as.d