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 Dec. 15, 2020, 3:01 a.m.