secr.test(secrdemo.0, nsim = 99)
secr.test(ovenbird.model.1, nsim = 20)
## example combining raw data summary and model fit
## assumes single-session
bothfn <- function(object) {
CH <- object$capthist
f1 <- sum(apply(abs(CH) > 0, 1, sum) == 1) / nrow(CH)
devdf <- deviance(object) / df.residual(object)
c(f1 = f1, devdf = devdf)
}
test <- secr.test (secrdemo.0, nsim = 19, statfn = bothfn, fit = TRUE)
test
plot(test, main = '')
Run the code above in your browser using DataLab