R/logLik.probit.R

Defines functions logLik.probit

Documented in logLik.probit

logLik.probit <- function( object, ... ) {
   if( !inherits( object, "maxLik" ) ) {
      stop( "the object must inherit from class 'maxLik'" )
   }
   result <- NextMethod( object )
   attr( result, "nobs" ) <- nObs( object )
   attr( result, "df" ) <- sum( activePar( object ) )
   class( result ) <- "logLik"
   return( result )
}

Try the sampleSelection package in your browser

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

sampleSelection documentation built on Jan. 13, 2021, 7:49 p.m.