model.matrix.opsr | R Documentation |
Construct Design Matrices for OPSR Model Fits
## S3 method for class 'opsr'
model.matrix(object, data, .filter = NULL, ...)
object |
an object of class |
data |
a data frame containing the terms from |
.filter |
used internally in |
... |
further arguments passed to or from other methods. |
A list of lists with the design matrices W
(selection process) and
X
(outcome process). Both of these lists have object$nReg
elements (a
separate design matrix for each regime).
model.frame.opsr
, stats::model.matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.