Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/vbpca_control.R
Auxiliary control parameters for estimation of vbpca
models. Internally used by
vbpca
, the function can be used for specifying specific parameter values.
1 2 3 4 | vbpca_control(nstart = 1, center = TRUE, scalecorrection = 0, svdStart = TRUE,
normalise = FALSE, seed = -1, plot.lowerbound = TRUE, hpdi = FALSE, probHPDI = 0.9,
scaleprior = FALSE, alphatau = 0.5, betatau = 0.5, gammatau = -1, deltatau = 1,
hypertype = 'common', beta1pi = 0.5, beta2pi = 0.5, v0 = 1e-04)
|
nstart |
integer; |
center |
bool; |
scalecorrection |
integer; |
svdStart |
bool; |
normalise |
bool; |
seed |
integer; |
plot.lowerbound |
bool; |
hpdi |
bool; |
probHPDI |
float; |
scaleprior |
bool; |
alphatau |
float or array_like; |
betatau |
float or array_like; |
gammatau |
float or array_like; |
deltatau |
float or array_like; |
hypertype |
character; |
beta1pi |
float or array_like; |
beta2pi |
float or array_like; |
v0 |
float; |
Use seed
> 0 to let vbpca
internally use the specified seed. If seed
< 0, the
seed set in the global environment will be utilized.
scaleprior
can be set to true when the prior variance tau
should be scaled by the residual variance
sigma2
.
alphatau
, betatau
, gammatau
, and deltatau
can be either scalar (float) values, or
D dimensional arrays, where D is the number of components specified in vbpca
. In the
first case, all components will share the same hyperparameters. In the second case, each hyperparameter will be
component-specific. For the hyperparameters gammatau
and deltatau
, this type of setting can also be
selected with the hypertype
argument. Note that the (Gamma) priors on tau
will be activated only when
all elements of gammatau
are larger than 0.
Similarly, beta1pi
and beta2pi
specify the Beta prior hyperparameters for the priorInclusion
argument when SVS = TRUE
. Both beta1pi
and beta2pi
can be scalar or D dimensional arrays.
The Beta hyperpriors will be activated only when all elements of beta1pi
are
larger than 0.
a list containing the control parameters specified by the user, as well as the unspecified default values.
D. Vidotto <d.vidotto@uvt.nl>
1 2 3 | # Specify controls for Inverse Gamma(1, .01) prior for W;
# and Beta(5, 1) prior for priorInclusion
ctrl <- vbpca_control(alphatau = 1, betatau = .01, beta1pi = 5, beta2pi = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.