Currently I try to fit a model for counted Individuals (response variable, integer numbers) in
Different types of traps (factorial explanatory variable).
I have two different Biotopes, and three Locations in each of both
On one day I placed the three traps in Biotope 1, every Trap at one of the three Locations, this was done three times so every Trap was used one time at every Location in the first Biotope. The same procedure followed for the second Biotope, so there were six days in round 1.
This was repeated in round 2 so every trap was runned two times in every Location
A table of the experimental design is added.
At every day the Humidity and Temperature in the Biotope was also measured.
So I would ask if this model will be correct to
prevent pseudoreplication because of the repeated experiments (2 rounds)
take into account that the Locations are nested within the Biotopes:
glmer( Individuals ~ Trap + Location + Temperature + Humidity +
(1|Biotope/Location) + (1|round), family=quasipoisson)
Another table of the independent variables is added. (To prevent any confusion I assigned new numbers to the Locations. The Locations within Biotope 1 are 1,2,3 - the Locations in Biotope 2 are 4,5 and 6) and Temperature is excluded since it was not significant anymore.
Temperature and Humidity are day-level predictor variables?
Yes, they were measured each Day in the Biotope where the experiment was conducted
Within each Day, it looks like you consider different locations, so Location can be treated as a random grouping factor and provided the locations you selected are intended to be representative of a larger set of locations
The Locations are constantly the same three ones within Biotope 1 and the other three ones within Biotope 2. They were chosen before the experiment started and did not change.
does it include in your study all possible levels you are interested in?
Yes, for this study Biotope 1 and Biotope 2 are the only ones. But I could also have chosen other 2 ones befor the whole experiment started. So I think it can be treated as random.
For Trap too, you would have to determine whether to consider it nested within/partially crossed with/fully crossed with Location,
the whole experiment was conducted with the same three Traps I used everyday. So I think they can not be treated as nested? The difference between the three Traps is the issue I am mostly interested in.
So far the model looks like this (the Interpretation of - exp(0.02459) and not exp(-0.02459 ) of the Estimate for Humidity is correct?)
> summary(model1)
Generalized linear mixed model fit by maximum likelihood (Laplace
Approximation) [glmerMod]
Family: Negative Binomial(21.0762) ( log )
Formula: Ind ~ Trap + Humidity + (1 | Biotop/Location) + (1 | Round)
Data: Dummy
AIC BIC logLik deviance df.resid
322.2 334.9 -153.1 306.2 28
Scaled residuals:
Min 1Q Median 3Q Max
-1.42508 -0.73084 0.08929 0.49095 2.37852
Random effects:
Groups Name Variance Std.Dev.
Location:Biotop (Intercept) 5.405e-02 2.325e-01
Biotop (Intercept) 2.437e-10 1.561e-05
Round (Intercept) 4.511e-03 6.717e-02
Number of obs: 36, groups: Location:Biotop, 6; Biotop, 2; Round, 2
Fixed effects:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 5.51280 0.40310 13.676 < 2e-16 ***
Trap2 0.12104 0.10659 1.136 0.25614
Trap3 0.34146 0.10557 3.235 0.00122 **
Humidity -0.02459 0.00575 -4.276 1.9e-05 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Correlation of Fixed Effects:
(Intr) Trap2 Trap3
Trap2 -0.154
Trap3 -0.103 0.516
Humidity -0.946 0.020 -0.036
convergence code: 0
boundary (singular) fit: see ?isSingular