AIC.scampr | R Documentation |
Akaike's Information Criteria for objects of class 'scampr'. Note that this currently calculates mAIC
## S3 method for class 'scampr'
AIC(object, ..., k = 2)
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. |
a numeric value with the corresponding AIC (or BIC, or ..., depending on k).
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.