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 sampleSelection2 package in your browser

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

sampleSelection2 documentation built on May 2, 2019, 6:08 p.m.