Hi Stan community,
Here is my research question: To what extent do beavers influence the number of insect species?
Sampling design: 16 streams. We define four (4) locations within each stream: Control, Inflow, Pond, Outflow.
Expectation: I expect to count more insect species in the beaver influenced locations jointly (Inflow, Pond, Outflow) than in the Control location.
My inquiries:
a) How do I account for the no detection of insect species even if it possible that these species are there?
b) How do I account for the fact that I compare one (1) Control to three (3) locations?
Maybe a model like that… but I am not sure.
b0 <-
brm(data = d, family = negbinomial,
y ~ 0 + location + offset(effort) + (0 + location | stream),
iter = 2500, warmup = 500, cores = 2, chains = 2,
seed = 10)
Does the offset relate to how many sample I have per location?
Here’s a sub-sample of the data:
d.csv (55.6 KB)
Thank you very much in advance.
Leonardo