# GLMM - Aleatory effects in R [closed]

I have a question if you could help me? I studied during 2 days (48 hours), 8 times per day (every 3 hours), 3 nests per species (2 species), the number of ants every 3 min that walk by a point. I made this in the 4 seasons of the year. The nests are not the same between seasons. I am doing a GLMM with one dependent variable with poisson frequency distrubution (number of ants every 3 minutes), two categorical explainatory variables (season and species), and 3 aleatory variables (day, time and nest). If i´m right day and time are crossing, but i´m not sure if nest are crossing with day and time or nest are "nesting" in the interaction between day and time. I´m not sure about how to express this relation of the aleatory effects in the script.

Its okey the following script??

model<- glmer(number ~ sp*season + (1|day:Time:nest), data =datos, family = poisson)


.......if are all crossing or

model2<- glmer(number ~ sp*season + (1|day:Time/nest), data =datos, family = poisson)


......if nest is "nested" in the interaction

## closed as off-topic by Michael Chernick, user158565, jbowman, mkt, Peter Flom♦Jan 17 at 11:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – jbowman, mkt, Peter Flom
If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to the site ! Please can you explain what your research hypothesis is ? – Robert Long Jan 17 at 11:52