Hi Holly,
When I run occupancy models (or any sort of models), I usually start with the simplest model, then work my way up to more complicated models. If you cannot get reasonable estimates from the psi(.),p(.) model, then I suspect that you have very sparse data for all 4 species, and there isn’t much hope for getting more complicated models to run. If you would like to send me a copy of your data off-list, I would be happy to see if there is anything I can think of to get it to work.
Your second way of making species a sampling covariate, instead of a site covariate, should produce the exact same output.
The idea of creating a single covariate with a number for each species, and multiple species=5, and no detection=6 would imply that you want to build a model where there is an order to the species (ie., p(species1)<p(species2)<p(species3)<p(species4)<p(multiple species)<p(no detections), or p(species1)>p(species2)>p(species3)>p(species4)>p(multiple species)>p(no detections)). I can’t think of any justification for this model. Even if you had a hypothesis that there is an order of the detection probabilities among the 4 species, the difference between detection probabilities among the species would have to be nearly constant, and you would not want to include the multiple species(5) or no detections (6). I don’t think I’ve ever heard of anyone who has used such a model.
The design matrix in your post has a couple of problems. First, it is overparameterized. To estimate a detection probability for each of the 4 species, there should be 4 columns. You can either estimate an intercept and 3 species effect parameters(a), or 4 species intercepts (b).
- Code: Select all
(a)
ie. Matrix 2: rows=6, cols=5
-,b1,b2,b3,b4,b5,
P[1] 1 SpecJ SpecP SpecJI SpecOc
P[2] 1 SpecJ SpecP SpecJI SpecOc
P[3] 1 SpecJ SpecP SpecJI SpecOc
P[4] 1 SpecJ SpecP SpecJI SpecOc
P[5] 1 SpecJ SpecP SpecJI SpecOc
(b)
ie. Matrix 2: rows=6, cols=5
-,b1,b2,b3,b4,b5,
P[1] SpecJ SpecP SpecJI SpecOc
P[2] SpecJ SpecP SpecJI SpecOc
P[3] SpecJ SpecP SpecJI SpecOc
P[4] SpecJ SpecP SpecJI SpecOc
P[5] SpecJ SpecP SpecJI SpecOc
Second, you cannot estimate psi or p for sites with no detections, since it is impossible to determine if there are no detections due to non-occupancy, or occupancy with no detections. The model needs to assume detection for sites with no detections is the same as sites with detections. Including a covariate (Spec0) will cause the model to try to estimate a separate p for those sites.
Also, using ‘SpecM’ as a covariate will cause the model to try to estimate different detection probabilities for sites with multiple species detected versus sites with only 1 species detected. If you were trying to estimate a different detection probability for sites with multiple species present vs only one species present, it is not possible with this model, since there is no way to know for sure from the data whether one or multiple species are present at a site. Using this covariate in conjunction with the species covariates will add complexity to the model, without obtaining anything useful to estimate.
Jim