R/heckit.R

Defines functions heckit

Documented in heckit

heckit <- function( selection, outcome,
                    data = sys.frame(sys.parent()), method="2step", ... ) {

   thisCall <- match.call()
   result <- selection( selection = selection, outcome = outcome,
      data = data, method = method, ... )

   result$call <- thisCall

   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.