powered by
Calculates the Akaike's information criterion (AIC) for a fitted model object.
# S4 method for MGLMfit AIC(object)# S4 method for MGLMreg AIC(object)# S4 method for MGLMsparsereg AIC(object)# S4 method for MGLMtune AIC(object)
# S4 method for MGLMreg AIC(object)
# S4 method for MGLMsparsereg AIC(object)
# S4 method for MGLMtune AIC(object)
Returns a numeric value with the corresponding AIC.
For the class "MGLMtune", the function returns AIC based on the optimal tuning parameter.
"MGLMtune"
MGLM object. "MGLMfit", "MGLMreg", "MGLMsparsereg", or "MGLMtune"
"MGLMfit"
"MGLMreg"
"MGLMsparsereg"
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)
Run the code above in your browser using DataLab