[R] binary data with correlation

From: yvonne fabian <yvo.fabian_at_gmx.de>
Date: Mon, 21 Mar 2011 08:39:31 -0700 (PDT)

Dear posters,
I have a question concerning binary data analysis. I have presence absence data of 5 sampling sessions within 3 years, of 12 fields. Each field had 12 traps. I would like to analyse the data with a Generalized Estimating Equations (GEE) Model in R. For the abundance data I used a gls with the function:
correlation = corARMA(form = ~ session|trapfield, p = 1, q = 0)

But now I want to use presence absence data…I know about the problem with correlated -binary data- but maybe somebody already created a solution? Something like that, which is not working….

rgee1 <- geeglm(Alus01 ~ treatment + scale(LAI) + scale(log(Tot_Sp)) + scale(AveH) , data = plates, family = binomial, waves = session, id = trapfield, corstr = "ar1")

Any help is appreciated a lot….

View this message in context: http://r.789695.n4.nabble.com/binary-data-with-correlation-tp3393884p3393884.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 21 Mar 2011 - 16:09:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Mar 2011 - 16:20:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive