I study a colonially-nesting bird species. I am trying to perform an AICc evaluation of GLMMs for a nest site selection study. I collected data at nest sites and paired random sites. I want to evaluate habitat characteristics (fixed effect) while accounting for colony sites (random effect) to predict nest site (response variable). Nest site is binary (nest site / paired random location). All data are standardized so as to have a normal distribution ((value-mean)/sd).
I have 5 colonies that have between 4-9 nests in them, which comes out to 38 nests and 38 random pairs that I use in the analysis. When I run the GLMMs in r with lme4 (glmer function), I get a result saying that I have 0 variance for each of 60 models. This is problematic because this doesn't happen with I remove the random effect, but I want to keep it to account for spatial autocorrelation in colonies.
I have read a few articles on this site and others about how the low number of groups may be suppressing my variance, however, when I run the models slightly differently (incorrectly structured, but basically lumping all the paired sites together to form one "colony" with 38 observations and comparing it to the other small colonies of 4-9 nests), it DOES give me a variance. So I don't think the number of groups itself is to blame.. Maybe it's the combination between small samples in group and small number of groups? Still though.. Any help would be great. If I can't figure it out, I think I'd have to resort to a glm fixed effect model without colony as a random effect. It would be incorrect, but it's a start? What would you do if you couldn't get this to work. Thank you.
Something I'd like to stress: I am not a statistician or a programmer. I catch birds. I have taken stats classes and I have a working grasp of some things, but let's face it, sometimes it's fleeting. If answers could please not be too esoteric and focus more on the PRACTICAL, as in, "You should do this. You should do that", I would be much obliged. I'm trying to get this analysis done with ASAP. Thank you again.
Some links I have consulted:
Random effect equal to 0 in generalized linear mixed model
Why do I get zero variance of a random effect in my mixed model, despite some variation in the data?
A sample of my code below.
helpmeobiwan <-list(NestPlot = c(1, 0, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0, 0, 0, 0, 0, 0, 0),NumDeadJun = c( 0.1409216, -0.1932639,-0.5274494,-0.5274494, 0.1409216, -0.5274494, -0.5274494 , 0.4751071, -0.5274494 , 2.1460347 ,-0.5274494, -0.1932639, 0.8092926, -0.5274494, -0.5274494 ,-0.5274494 ,-0.1932639, 0.1409216, -0.5274494, -0.5274494 ,-0.5274494, -0.5274494 ,-0.5274494, 0.1409216,-0.5274494, -0.5274494 ,-0.5274494, 0.1409216, -0.5274494, 0.1409216, -0.5274494, -0.5274494, -0.5274494, -0.1932639, -0.1932639, -0.5274494, 0.4751071 , 0.1409216 ,-0.5274494, -0.5274494, -0.5274494, -0.5274494, -0.5274494, -0.5274494, -0.5274494, -0.5274494, -0.1932639, -0.5274494, -0.5274494 ,-0.5274494 ,-0.5274494, 0.1409216, -0.5274494, -0.5274494, -0.1932639, -0.5274494, -0.5274494, -0.5274494, 0.1409216, -0.5274494, -0.5274494 ,3.1485912 , 2.4802202, 1.4776637, -0.5274494 , 2.8144057, -0.5274494, -0.5274494, 1.1434781, 3.8169623, 3.8169623 ,-0.1932639, -0.5274494 ,1.4776637 , 1.8118492, -0.5274494),RandomPair = c( "Madera2" , "Starfire1", "Madera2" , "Madera3" , "Starfire1" ,"Starfire1", "Starfire2", "Madera1" , "Madera3" ,"Starfire2" ,"Starfire2", "Madera1", "Madera2", "Starfire1", "Starfire1" ,"Starfire1", "Madera1", "Madera2" , "Starfire1", "Starfire1", "Starfire1", "Madera1" , "Starfire1", "Starfire1", "Madera1", "Madera1" , "Starfire1", "Madera2" , "Madera1", "Madera2" , "Madera1" , "Madera1" , "Starfire1" ,"Starfire1", "Starfire1" ,"Starfire1" ,"Madera2" , "Madera2", "Starfire2" ,"Starfire2", "Starfire2" ,"Madera3" , "Madera3" , "Madera3" , "Madera3" , "Madera3" , "Starfire2", "Starfire2", "Starfire2", "Starfire2" ,"Starfire2", "Madera3", "Madera3" , "Starfire2", "Madera3" , "Madera1" , "Starfire2" ,"Starfire1", "Madera2" , "Madera3" , "Madera3" , "Madera2" , "Madera3" ,"Starfire2", "Madera3", "Starfire1", "Madera3" , "Starfire2", "Starfire1", "Madera3", "Starfire1", "Starfire2" ,"Madera1" , "Starfire2", "Starfire2", "Madera1" ))
m1 <- glmer(NestPair ~ NumDeadJun+ (1|RandomPair), family=binomial, data=helpmeobiwan)