R/model.matrix.heckit5rob.R

Defines functions model.matrix.heckit5rob

Documented in model.matrix.heckit5rob

model.matrix.heckit5rob <-
function(object, part = "outcome", ...)
{
  if(part == "outcome")
    return(list(stage21 = model.matrix(object$stage21), stage22 = model.matrix(object$stage22)))
  else if(part == "selection")
    return(model.matrix(object$stage1))
  else cat("Please choose either 'outcome' or 'selection' matrix")
}

Try the ssmrob package in your browser

Any scripts or data that you put into this service are public.

ssmrob documentation built on Aug. 20, 2021, 5:08 p.m.