## S3 method for class 'secr':
AIC(object, ..., sort = TRUE, k = 2, dmax = 10)
## S3 method for class 'secrlist':
AIC(object, ..., sort = TRUE, k = 2, dmax = 10)
## S3 method for class 'secr':
logLik(object, ...)
secrlist(...)
secr
object output from the function
secr.fit
, or a list of such objects with class c("list","secrlist")secr
objectslogLik.secr
returns an object of class `logLik' that has
attribute df
(degrees of freedom = number of estimated
parameters).capthist
).
Model weights are calculated as $$w_i = \frac{\exp(-\Delta_i / 2)}{
\sum{\exp(-\Delta_i / 2)}}$$
Models for which dAICc > dmax
are given a weight of zero and are
excluded from the summation. Model weights may be used to form
model-averaged estimates of real or beta parameters with
model.average
(see also Buckland et al. 1997, Burnham and
Anderson 2002).
The argument k
is included for consistency with the generic method AIC
.
secrlist
forms a list of fitted models (an object of class
`secrlist') from the fitted models in .... Arguments may include
secrlists. If secr components are named the model names will be retained
(see Examples).model.average
, AIC
, secr.fit
, print.secr
, score.test
, LR.test
, deviance.secr
## Compare two models fitted previously
## secrdemo.0 is a null model
## secrdemo.b has a learned trap response
AIC(secrdemo.0, secrdemo.b)
## Form secrlist and pass to AIC.secr
temp <- secrlist(null = secrdemo.0, learnedresponse = secrdemo.b)
AIC(temp)
Run the code above in your browser using DataLab