Hi everyone! I am a biologist from Argentina and have to solve this problem.
I have an insect population obtained from 10 different nests and need to
know its sex ratio. But as I cannot ensure insects independence I need to
run a model where I can include the variable “nest” as with a random effect.
The response variable has a binomial distribution (males or females).
I’ve been reading for a while and found the MASS and lmer packages that will
allow me to do such a thing with my data. I found the script I should write
“lmer(y~fixed+(time | random), family=binomial)” but, despite of using the R
commander cannot make it work. Can you help me with this? I’ll appreciate
that!
 
Thanks, 
Martín
 
PS: mi data has to columns (nest & sex) and about 200 rows.
 
 
 

	[[alternative HTML version deleted]]


