Hi Juergen,
I have five landscape covariates (aspect, lithology, landform, ruggedness, plant species richness), three of which are categorical (aspect, lithology, landform), and a dataset of fauna observations over nine sampling periods. What I'd ideally like to attempt to determine is whether there is an effect of sampling period (Survey) on occupancy estimates for each species across all the landscape covariates. I understand the current implementation of communityModel() doesn't allow for random effects of one categorical covariate on another, only on a continuous covariate, but I wonder if you can think of any way to "hack" it, so to speak. Ideally I'd simply implement it as below, but I know that's not an option at present and I can only use Survey as a covariate for ruggedness and plant species richness - any bright ideas, or is it simply not possible?
mod.jags2 <- communityModel(datalist,
occuCovs = list(ranef = c("Survey", "aspect|Survey", "lithology|Survey", "landform|Survey","ruggedness|Survey", "spp_richness|Survey")),
detCovsObservation = list(fixed = "effort"),
intercepts = list(det = "ranef", occu = "ranef"),
modelFile = modelfile2)
Thanks,
Jarrad