Hi Alan,
First of all, thank you for providing example code. So, with main effects I mean the overall effect of a factor, which is not the same as the abundance estimate for the factor levels. In my case (again, I have a categorial predictor with multiple levels, see model below), I would like to know if the factor land cover use has a significant effect on species abundance (in addition to the specific abundance for each factor level). However, after reading a bit more about Bayesia outputs, I am getting the idea that such a procedure might not work for Bayesian models and could be exclusive of frequentist approaches. Anyway, here would be my model:
NMix(abund.formula = ~ scale(tmed) + landcover,
det.formula = ~ scale(t50) + (1|observers),
data = sp,
n.batch = 1600,
batch.length = 25,
n.burn = 20000,
thin = 20,
n.chains = 3,
n.report = 500,
family = "Poisson",
verbose = T)
I have 11 species in 7 islands, so putting the entire dataset would be a bit too much, but the data for one species are attached in case you would want to a look.
Best and again thank you,
P.S. for this example I just set n.batch to a standard value but in my actual analyses, this is higher (e.g. 4000). Also, I just specified a reduced number of det.covs but the original model would include other predictors.
Julien