R/selectionVariableName.R

Defines functions selectionVariableName.selection selectionVariableName

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