Nothing
#' @export
extractAIC.coxreg <- function(fit, scale, k = 2, ...)
{
edf <- sum(fit$df)
loglik <- fit$loglik[length(fit$loglik)]
c(edf, -2 * loglik + k * edf)
}
#' @export
extractAIC.phreg <- function(fit, scale, k = 2, ...)
{
edf <- length(fit$coefficients)
loglik <- fit$loglik[length(fit$loglik)]
c(edf, -2 * loglik + k * edf)
}
#' @export
extractAIC.aftreg <- function(fit, scale, k = 2, ...)
{
edf <- sum(fit$df)
loglik <- fit$loglik[length(fit$loglik)]
c(edf, -2 * loglik + k * edf)
}
#' @export
nobs.coxreg <- function(object, ...){
object$n.events
}
#' @export
nobs.phreg <- function(object, ...){
object$n
}
#' @export
nobs.aftreg <- function(object, ...){
object$n
}
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.