model.matrix.heckit5rob {ssmrob} | R Documentation |
Design Matrix of Switching Regression Model
Description
Create design matrix of switching regression model
Usage
## S3 method for class 'heckit5rob'
model.matrix(object, part = "outcome", ...)
Arguments
object |
object of class |
part |
character string indicating which matrix to extract: "outcome" for the outcome equations, "selection" for the selection equation. |
... |
currently not used |
Value
If argument part
is "outcome"
, the list containing design matrices of the outcome equations is returned.
stage21 |
design matrix for the first regime |
stage22 |
design matrix for the second regime |
If argument part
is "selection"
, the design matrix of the selection equation is returned.
Author(s)
Mikhail Zhelonkin
[Package ssmrob version 1.0 Index]