R/extractAIC.censReg.R

Defines functions extractAIC.censReg

extractAIC.censReg <- function( fit, scale = 0, k = 2, ... ) {
   # copied from stats:::extractAIC.glm and slightly modified thereafter
   n <- nObs( fit )
   edf <- n - df.residual( fit )
   aic <- AIC( fit )
   return( c( edf, aic + ( k - 2 ) * edf ) )
}

Try the censReg package in your browser

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

censReg documentation built on April 26, 2024, 3 a.m.