Valeria asked why estimates from a 74-day binary 'proximity' dataset changed when the data were collapsed to single-occasion binomial count data. Theoretically they should not change (Efford, Dawson & Borchers 2009).
After playing with Valeria's data I concluded that the problem was numerical. Essentially, model fits can be sensitive to the setting of the details argument 'minprob' in secr.fit. Set this to a small enough value and the estimates become stable. For example
- Code: Select all
secr.fit(CH, ..., details = list(minprob = 1e-200))
seems OK, and in future versions I'll make that the default instead of 1e-50 (already fixed in working version on the Density website).
The data collapsed to a single occasion gave the correct answer and the original, uncollapsed analysis was wrong. I suspect it is a problem only with 'extreme' datasets (few animals, many occasions, or, possibly, poor model fit due to unmodelled camera-site effects).
It is possible that other people's analyses have been affected. Always cross check your results! In this case I used some simple R code that calculated the likelihood quite independently of secr.fit(), and I'll look at ways to make that available. I would be interested to hear of other datasets for which the result is sensitive to minprob.
(Incidentally: the likelihoods differ by a constant (the sum of binomial coefficients for each animal x site count) that depends on the data but not the parameter values; certainly the original and collapsed models should not be compared by AIC).
Murray