## Not run: ------------------------------------
#
# ## navigate to folder with raw data files
# olddir <- setwd (system.file("extdata", package="secr"))
#
# ## construct capthist object from raw data
# captdata <- read.capthist ("capt.txt", "trap.txt", fmt = "XY", detector = "single")
#
# ## generate demonstration fits
# secrdemo.0 <- secr.fit (captdata)
# secrdemo.CL <- secr.fit (captdata, CL = TRUE)
# secrdemo.b <- secr.fit (captdata, model = list(g0 ~ b))
#
# ## restore previous setting
# setwd(olddir)
## ---------------------------------------------
## display the null model fit, using the print method for secr
secrdemo.0
## compare fit of models
AIC(secrdemo.0, secrdemo.b)
## display estimates for the two models (single session)
collate(secrdemo.0, secrdemo.b)[1,,,]
Run the code above in your browser using DataLab