Learn R Programming

Distance (version 1.0.3)

AIC.dsmodel: Akaike's An Information Criterion for detection functions

Description

Extract the AIC from a fitted detection function.

Usage

# S3 method for dsmodel
AIC(object, ..., k = 2)

Arguments

object

a fitted detection function object

optionally more fitted model objects.

k

penalty per parameter to be used; the default k = 2 is the "classical" AIC

Examples

Run this code
# NOT RUN {
library(Distance)
data(minke)
model <- ds(minke, truncation=4)
model_hr <- ds(minke, truncation=4, key="hr")
# extract the AIC for 2 models
AIC(model, model_hr)
# }

Run the code above in your browser using DataLab