R/coef.summary.selection.R

Defines functions coef.summary.selection

Documented in coef.summary.selection

coef.summary.selection <- function( object, part="full", ... ) {

   if( !( part %in% c( "full", "outcome" ) ) ) {
      stop( "argument 'part' must be either 'full' or 'outcome'" )
   }

   result <- object$estimate

   if( part == "outcome" ) {
      result <- result[ object$param$index$outcome, ]
   }

   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.