Hi,
My single season occupancy model has 51 sites, each site was visited 5 times except 1 which was visited only 4 times. I used the code to omit NA's so that the parametric bootstrap will go forward, but when I get my output it tells me that there are 50 or more warnings:
In rbinom(M * J, 1, prob = p) : NAs produced
What is wrong with my code or my model that it would be doing this?
Thanks,
Rylee
ps. How do I get parboot to give me a confidence interval for an overall occupancy probability for all 51 of my sites?
fitstats <- function(d23) { #d23 is my model
observed <- getY(occu.umf) #occu.umf is my unmarkedFrame
expected <- fitted(d23)
resids <- residuals(d23)
r2<- resids^2
sse <- sum(r2, na.rm=TRUE)
chisq <- sum((observed - expected)^2 / expected, na.rm=TRUE)
freeTuke <- sum((sqrt(observed) - sqrt(expected))^2, na.rm=TRUE)
out <- c(SSE=sse, Chisq=chisq, freemanTukey=freeTuke)
return(out)
}
(pb <- parboot(d23, fitstats, nsim=100, report=1))
plot(pb, main="")