Learn R Programming

secr (version 4.3.0)

AICcompatible: Model Compatibility

Description

Determine whether models can be compared by AIC. Incompatibility may be due to difference in the data or the specifications of the groups, hcov or binomN arguments to secr.fit,

Usage

# S3 method for secr
AICcompatible(object, ...)
# S3 method for secrlist
AICcompatible(object, ...)

Arguments

object

secr object output from the function secr.fit, or a list of such objects with class c("secrlist", "list")

other secr objects

Value

Named logical vector with elements `data', `CL', `groups', `hcov' and `binomN'.

Details

The capthist objects are checked for strict identity with the function identical.

All elements in the output must be TRUE for valid AIC comparison or model averaging using AIC or AICc.

See Also

AIC.secr, model.average

Examples

Run this code
# NOT RUN {
AICcompatible(secrdemo.0, secrdemo.CL)

# }
# NOT RUN {
## A common application of AICcompatible() is to determine 
## the compatibility of models fitted with and without the 
## fastproximity option.

ovenCHp1 <- reduce(ovenCHp, by = 'all', outputdetector = 'count')
ob1 <- secr.fit(ovenCHp, buffer = 300, details = list(fastproximity = TRUE))
ob2 <- secr.fit(ovenCHp1, buffer = 300, details = list(fastproximity = FALSE))
ob3 <- secr.fit(ovenCHp1, buffer = 300, details = list(fastproximity = FALSE), binomN = 1)
AICcompatible(ob1,ob2)
AICcompatible(ob1,ob3)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab