Does anyone know if the dredge function work with pcountOpen objects? I ran through the sample code that Dan has provided, and it works fine. However, when I try to do the exact same thing with a pcountOpen object, dredge appears to only test a completely constant model (sample pasted below). I also tried this with pdredge, and had the same results. Any thoughts?
> summary(pm.umf)
unmarkedFrame Object
40 sites
Maximum number of observations per site: 36
Mean number of observations per site: 26.25
Number of primary survey periods: 12
Number of secondary survey periods: 3
Sites with at least one detection: 39
Tabulation of y observations:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 26 <NA>
216 135 153 144 89 69 59 45 33 27 23 11 10 12 7 2 3 3 3 2 2 1 1 390
Site-level covariates:
a:10 Min. :-1.6454 Min. :-1.5265 Min. :-1.1409 abg: 8 c1ae : 4 ab0:8 Min. :0.0 Min. :0.0 Min. :-1.4357
b:10 1st Qu.:-0.3281 1st Qu.:-0.4539 1st Qu.:-0.5218 fbn: 8 c1aw : 4 fb4:8 1st Qu.:0.0 1st Qu.:1.0 1st Qu.:-0.7938
c:10 Median : 0.4193 Median : 0.1830 Median :-0.2177 pbg:24 c3ae : 4 pb0:8 Median :1.0 Median :1.0 Median :-0.2024
d:10 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 c3aw : 4 pb1:8 Mean :0.9 Mean :0.8 Mean : 0.0000
3rd Qu.: 0.7474 3rd Qu.: 0.6368 3rd Qu.: 0.3041 c3be : 4 pb2:8 3rd Qu.:2.0 3rd Qu.:1.0 3rd Qu.: 0.5352
Max. : 0.8068 Max. : 1.1605 Max. : 1.5762 c3bw : 4 Max. :3.0 Max. :1.0 Max. : 1.9681
(Other):16
forb shrub bare litter litdepth vor
Min. :-1.80290 Min. :-0.8663 Min. :-1.1355 Min. :-0.9160 Min. :-0.8064 Min. :-1.5726
1st Qu.:-0.69533 1st Qu.:-0.8162 1st Qu.:-0.9276 1st Qu.:-0.6778 1st Qu.:-0.6864 1st Qu.:-0.6648
Median :-0.09031 Median :-0.3017 Median :-0.2718 Median :-0.2237 Median :-0.5263 Median : 0.0263
Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000
3rd Qu.: 0.74928 3rd Qu.: 0.5502 3rd Qu.: 0.9605 3rd Qu.: 0.2436 3rd Qu.: 0.6102 3rd Qu.: 0.3306
Max. : 2.45340 Max. : 2.7750 Max. : 2.4920 Max. : 2.6259 Max. : 2.4697 Max. : 2.6773
Observation-level covariates:
seasonp monthp.V1
fa:360 Min. :-1.5927017
sp:360 1st Qu.:-0.7963509
su:360 Median : 0.0000000
wi:360 Mean : 0.0000000
3rd Qu.: 0.7963509
Max. : 1.5927017
Yearly-site-level covariates:
season month.V1 precip.prev.V1 precip.twoprev.V1 mean.min.V1 mean.min.prev.V1
fa:120 Min. :-1.5915945 Min. :-1.3239232 Min. :-1.3931911 Min. :-1.5858730 Min. :-1.5839611
sp:120 1st Qu.:-0.7957973 1st Qu.:-0.7956317 1st Qu.:-0.8530210 1st Qu.:-0.9274967 1st Qu.:-0.9259622
su:120 Median : 0.0000000 Median :-0.1739009 Median :-0.1885121 Median : 0.0066408 Median : 0.0076397
wi:120 Mean : 0.0000000 Mean : 0.0000000 Mean : 0.0000000 Mean : 0.0000000 Mean : 0.0000000
3rd Qu.: 0.7957973 3rd Qu.: 0.7443200 3rd Qu.: 0.6677835 3rd Qu.: 0.9338962 3rd Qu.: 0.9343635
Max. : 1.5915945 Max. : 2.9718891 Max. : 2.8132147 Max. : 1.6753912 Max. : 1.6754334
> (pm.glbl <- pcountOpen(~grass + forb + litdepth + shrub + precip.py +
precip.gs +
precip.cy, ~1, ~1, ~1, pm.umf, K=50))
Call:
pcountOpen(lambdaformula = ~grass + forb + litdepth + shrub +
pformula = ~1, data = pm.umf, K = 50)
Abundance:
Estimate SE z P(>|z|)
(Intercept) 1.2287 0.116 10.564 4.40e-26
grass 0.0723 0.155 0.465 6.42e-01
forb 0.2915 0.104 2.793 5.22e-03
litdepth -0.5309 0.181 -2.928 3.41e-03
shrub -0.0285 0.133 -0.214 8.30e-01
precip.py 37.5385 21.688 1.731 8.35e-02
Recruitment:
Estimate SE z P(>|z|)
0.728 0.0664 11 6.11e-28
Apparent Survival:
Estimate SE z P(>|z|)
1.22 0.128 9.52 1.78e-21
Detection:
Estimate SE z P(>|z|)
0.22 0.0734 3 0.00273
AIC: 4170.2
> (d2 <- dredge(pm.glbl, rank = AIC))
Fixed terms are "lam(Int)", "gamConst(Int)", "omega(Int)", "p(Int)" and "NA(Int)"
Global model call: pcountOpen(lambdaformula = ~grass + forb + litdepth + shrub +
pformula = ~1, data = pm.umf, K = 50)
---
Model selection table
lam(Int) gmC(Int) omg(Int) p(Int) NA(Int) df logLik AIC delta weight
1 1.552 0.7272 1.176 0.2987 + 4 -2121.895 4251.8 0 1
Models ranked by AIC(x)