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 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.