Nothing
#' Akaike's An Information Criterion
#'
#' @description Similar functional utility to \code{coef} methods.
#'
#' @param object \code{fcrrp} object
#' @param k Numeric, the penalty per parameter to be used; the default k = 2 is the classical AIC.
#' @param ... Additional arguments. Not implemented.
#' @return A numeric value with the corresponding AIC (or BIC, or ..., depending on \code{k}).
#' @export
#'
AIC.fcrrp <- function(object, ..., k = 2)
-2 * object$logLik + k * apply(object$coef, 2, function(x) sum(x != 0))
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.