data(stoatDNA)
summary(stoatCH)
stoat.model.HN <- secr.fit(stoatCH, buffer = 1000, detectfn = 0)
stoat.model.HZ <- secr.fit(stoatCH, buffer = 1000, detectfn = 1)
stoat.model.EX <- secr.fit(stoatCH, buffer = 1000, detectfn = 2)
confint(stoat.model.HN, 'D')
## Profile likelihood interval(s)...
## lcl ucl
## D 0.01381419 0.04563511
## plot fitted detection functions
xv <- seq(0,800,10)
plot(stoat.model.EX, xval = xv, ylim = c(0,0.12), limits = FALSE,
lty = 2)
plot(stoat.model.HN, xval = xv, limits = FALSE, lty = 1, add = TRUE)
plot(stoat.model.HZ, xval = xv, limits = FALSE, lty = 3, add = TRUE)
## review density estimates
collate(stoat.model.HZ, stoat.model.HN, stoat.model.EX,
realnames='D', perm=c(2,3,4,1))
model.average(stoat.model.HZ, stoat.model.HN, stoat.model.EX,
realnames='D')
Run the code above in your browser using DataLab