Re: [R] Mixed model help!

2009-03-14 Thread Douglas Bates
On Fri, Mar 13, 2009 at 2:39 PM, Martín Quiroga wrote: > 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

Re: [R] Mixed model help!

2009-03-14 Thread Dieter Menne
Martín Quiroga ssdfe.com.ar> writes: > 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)

[R] Mixed model help!

2009-03-13 Thread Martín Quiroga
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