R/AIC.fcrrp.R

Defines functions AIC.fcrrp

Documented in AIC.fcrrp

#' 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))

Try the fastcmprsk package in your browser

Any scripts or data that you put into this service are public.

fastcmprsk documentation built on Sept. 12, 2019, 1:04 a.m.