- y
An n-vector of response values.
- x
An nxp matrix of predictors. See addintercept
below.
- lambda
Initial value of mixing proportions. Entries should sum to
1. This determines number of components. If NULL, then lambda
is
random from uniform Dirichlet and number of
components is determined by beta
.
- beta
Initial value of beta
parameters. Should be a pxk matrix,
where p is the number of columns of x and k is number of components.
If NULL, then beta
has uniform standard normal entries. If both
lambda
and beta
are NULL, then number of components is determined by s
.
- s
k-vector of standard deviations. If NULL, then \(1/\code{s}^2\) has
random standard exponential entries. If lambda
, beta
, and s
are
NULL, then number of components determined by k
.
- k
Number of components. Ignored unless all of lambda
, beta
,
and s
are NULL.
- addintercept
If TRUE, a column of ones is appended to the x
matrix before the value of p is calculated.
- mu
The prior hyperparameter of same size as beta
;
the means of beta
components. If NULL,
these are set to zero.
- sig
The prior hyperparameter of same size as beta
;
the standard deviations of beta
components. If NULL, these are
all set to five times the overall standard deviation of y.
- lam.hyp
The prior hyperparameter of length k
for the mixing proportions (i.e.,
these are hyperparameters for the Dirichlet distribution). If NULL, these are generated from a standard uniform
distribution and then scaled to sum to 1.
- sampsize
Size of posterior sample returned.
- omega
Multiplier of step size to control M-H acceptance rate.
Values closer to zero result in higher acceptance rates, generally.
- thin
Lag between parameter vectors that will be kept.