AIC.scampr: Akaike's Information Criteria for objects of class 'scampr'....

View source: R/AIC.scampr.R

AIC.scamprR Documentation

Akaike's Information Criteria for objects of class 'scampr'. Note that this currently calculates mAIC

Description

Akaike's Information Criteria for objects of class 'scampr'. Note that this currently calculates mAIC

Usage

## S3 method for class 'scampr'
AIC(object, ..., k = 2)

Arguments

object

a scampr model

...

Optionally, additional scampr model objects

k

a numeric describing the penalty per parameter - defaults to k = 2 i.e. classical AIC.

Value

a numeric value with the corresponding AIC (or BIC, or ..., depending on k).

Examples

# Get the gorilla nesting data
dat <- gorillas

# Standardise the elevation covariate
dat$elev.std <- scale(dat$elevation)

# Fit a scampr model to the point pattern
m <- scampr(pres ~ elev.std, data = dat, model.type = "PO")

AIC(m)

ElliotDovers/scampr documentation built on March 17, 2024, 3:27 p.m.