Learn R Programming

emax.glm (version 0.1.2)

AIC.em.glm: Calculate the AIC of the em.glm model

Description

Calculate the AIC of the em.glm model

Usage

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

Arguments

object

A 'em.glm' class returned by the em.glm function.

...

optionally more fitted model objects.

k

numeric, the penalty per parameter to be used; the default k = 2 is the classical AIC.

Value

The AIC score of the model.

Examples

Run this code
# NOT RUN {
y <- c(AirPassengers)
n <- length(y)
x <- as.matrix(rep(1, n))
m <- em.glm(x = x, y = y, K = 2, b.init = "random")
AIC(m)

# }

Run the code above in your browser using DataLab