[R] Logistic regression with repeated measures

Dieter Menne dieter.menne at menne-biomed.de
Mon Feb 11 20:36:09 CET 2008


Steven Vamosi <smvamosi <at> gmail.com> writes:

> In a nutshell, the experiment involved presenting females from two
> groups (treatment, control) with an opportunity to mate with a virgin
> male every 6 hours for 48 hours. Every female was presented this
> opportunity at every time step (i.e., whether or not she mated at 6
> hr, she was again presented with a male at 12 hr, and so on).

..... 
> female	group	mass	time	mate
> 1	control	5.7	0	1
> 1	control	5.7	6	1
..... 
> How, then, to determine whether treatment females display different
> mating patterns over time than control females? Here's my crack at it:
> 
> foo1 <- lmer2(mate ~ group * mass * time + (time | female), family=binomial)
> 

And what happened post-crack? Error ~."..singular"? In case, did you try to
replace the * by + as a first try?

Dieter



More information about the R-help mailing list