coef.bmixlm: Coefficients of a 'bmixlm' Object

Description Usage Arguments Details Value

Description

Extract a set of model coefficients from a fitted bmixlm object.

Usage

1
2
3
## S3 method for class 'bmixlm'
coef(object, which = c("probit", "comp1", "comp2", "error"),
  type = c("mean", "samples"), ...)

Arguments

object

An object of class bmixlm

which

The parameter set to extract (see details).

type

Whether to return the posterior mean or samples from the posterior.

...

Currently unused.

Details

The fitted object contains of four sets of parameters: the coefficients for the two component models, the coefficients for the probit model, and the error standard deviations from the two component models. The which argument determines which of these parameter sets is returned:

"comp1"

coefficients for the first component model

"comp2"

coefficients for the second component model

"probit"

coefficients for the probit binary model

"error"

error standard deviations for the two components

Value

If type="mean" the coefficients are returned as a vector, and if type="samples" the coefficients are returned as an array of samples from the posterior


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