model.matrix.bmixlm: Model matrices for a 'bmixlm' Object

Description Usage Arguments Details Value

Description

Extract a model matrix for one component of a bmixlm object.

Usage

1
2
3
## S3 method for class 'bmixlm'
model.matrix(object, which = c("probit", "comp1", "comp2"),
  data = NULL, ...)

Arguments

object

An object of class bmixlm

which

The parameter set to extract (see details).

data

A data frame or NULL.

...

Currently unused.

Details

A bmixlm object depends upon three model matrices: the matrices for the two component models and the model matrix for the probit model. The which argument determines which of these matrices is returned:

"comp1"

the model matrix for the first component model

"comp2"

the model matrix for the second component model

"probit"

the model matrix for the probit binary model

If a dataframe is supplied via the data argument, it is used to construct the model matrix, otherwise the model matrix is constructed from the data used to generate the fitted object

Value

The model matrix for the selected model component.


SWotherspoon/bmixlm documentation built on May 9, 2019, 12:07 p.m.