powered by
Calculate the AIC of the em.glm model
# S3 method for em.glm AIC(object, ..., k = 2)
A 'em.glm' class returned by the em.glm function.
optionally more fitted model objects.
numeric, the penalty per parameter to be used; the default k = 2 is the classical AIC.
k = 2
The AIC score of the model.
# 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