I am making a multi-level linear model in R using lmer
Structure of my data is a bit convoluted There are 8 Bogs with 6 squares where damage is evaluated and 3 sweeps for insects. Squares 1,2 correspond to sweep 1-2 and so forth. Additionally, the data was gathered on different weeks. The structure of the data can be seen below:
I would like to relate Perc.Dead to Total.Toadbug. I came up with the following model:
Perc.Dead ~ log(Total.Toadbug + 1) + as.factor(Week) + (1|Bog)
log(Total.Toadbug + 1) does not vary by bog or week as I would expect he affect of the insect to be the same across these 2 parameters.
However, I am not sure if this is correct as 2 observations of Perc.Dead correspond to one observation of Total.Toadbug.
and then use the above model?