It works fine with fit = TRUE and the default statistic deviance(fit) / df.residual(fit), and with fit = FALSE and the default f1 statistic (proportion of detected animals with only one detection, computed separately for each session).
The default f1 statistic for multi-session data is computed session by session. You can roll the session-specific values into a single number and compute alongside the deviance statistic like this:
bothfn <- function(object) {
CH <- object$capthist
onecapt <- function(ch) sum(apply(abs(ch) > 0, 1, sum) == 1)
f1 <- sum(sapply(CH, onecapt)) / sum(sapply(CH, nrow))
devdf <- deviance(object) / df.residual(object)
c(f1 = f1, devdf = devdf)
}
test <- secr.test (ovenbird.model.1, nsim = 3, statfn = bothfn, fit = TRUE)
test
Murray