AIC | R Documentation |
Calculates the Akaike's information criterion (AIC) for a fitted model object.
## S4 method for signature 'MGLMfit' AIC(object) ## S4 method for signature 'MGLMreg' AIC(object) ## S4 method for signature 'MGLMsparsereg' AIC(object) ## S4 method for signature 'MGLMtune' AIC(object)
object |
MGLM object. |
Returns a numeric value with the corresponding AIC.
For the class "MGLMtune"
, the function returns AIC
based on the optimal tuning parameter.
set.seed(124) n <- 200 d <- 4 alpha <- rep(1, d-1) beta <- rep(1, d-1) m <- 50 Y <- rgdirmn(n, m, alpha, beta) gdmFit <- MGLMfit(Y, dist="GDM") AIC(gdmFit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.