R/selectionVariableName.R

Defines functions selectionVariableName selectionVariableName.selection

### treatReg: which is the name of the selection outcome variable
### used for determining if it is included in the outcome model

selectionVariableName <- function( x, ... ) {
    UseMethod("selectionVariableName")
}

selectionVariableName.selection <- function( x, ... ) {
   if(tobitType(x) == "treatment")
      return(x$param$selectionVariableName)
   return(integer(0))
}

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.