I am using single-season occupancy models to estimate detection and occupancy for Alligator Snapping Turtles in Louisiana. I have run my detection models with constant occupancy, and I am fitting occupancy models with the top ranked detection model.
I am currently trying to assess the fit of my global model with the Mackenzie-Bailey GOF test in AICcmodavg, but I get the following errors:
Warning messages:
1: In rbinom(M * J, 1, prob = p) : NAs produced
2: In rbinom(M * J, 1, prob = p) : NAs produced
3: In rbinom(M * J, 1, prob = p) : NAs produced
4: In rbinom(M * J, 1, prob = p) : NAs produced
5: In rbinom(M * J, 1, prob = p) : NAs produced
I am using the most current version of AICcmodavg. I want to run the 10,000 simulations recommended, but I get the errors after 5 simulations.
The results of the 5 simulations are:
> print(GOF_results)
MacKenzie and Bailey goodness-of-fit for single-season occupancy model
Pearson chi-square table:
Cohort Observed Expected Chi-square
000000 0 5 5.43 0.03
000100 0 2 0.42 5.97
010000 0 1 0.41 0.85
100100 0 1 0.07 12.16
00000. 1 2 4.67 1.52
00010. 1 1 0.58 0.31
00101. 1 2 0.15 23.28
10000. 1 2 0.74 2.16
10100. 1 1 0.17 4.05
11000. 1 1 0.18 3.62
11100. 1 1 0.04 21.55
0000.. 2 7 7.76 0.08
0010.. 2 1 0.60 0.27
0100.. 2 2 0.59 3.32
1000.. 2 1 0.62 0.23
000... 3 86 80.17 0.42
001... 3 3 5.15 0.90
010... 3 1 5.24 3.43
011... 3 1 0.91 0.01
100... 3 7 5.44 0.45
101... 3 1 0.95 0.00
00.... 4 115 116.47 0.02
01.... 4 3 2.57 0.07
10.... 4 4 2.56 0.80
Chi-square statistic = 94.5994
Number of bootstrap samples = 5
P-value = 0.4
Quantiles of bootstrapped statistics:
0% 25% 50% 75% 100%
38 43 51 109 123
Estimate of c-hat = 1.3