mgpControl {IMIFA} | R Documentation |
Control settings for the MGP prior and AGS for infinite factor models
Description
Supplies a list of arguments for use in mcmc_IMIFA
pertaining to the use of the multiplicative gamma process (MGP) shrinkage prior and adaptive Gibbs sampler (AGS) for use with the infinite factor models "IFA"
, "MIFA"
, "OMIFA"
, and "IMIFA"
.
Usage
mgpControl(alpha.d1 = 2.1,
alpha.d2 = 3.1,
phi.hyper = c(3, 2),
sigma.hyper = c(3, 2),
active.crit = c("BD", "SC"),
prop = switch(active.crit, BD=0.7, SC=0.99),
eps = 0.1,
adapt = TRUE,
forceQg = FALSE,
cluster.shrink = TRUE,
truncated = FALSE,
b0 = 0.1,
b1 = 5e-05,
beta.d1 = 1,
beta.d2 = 1,
start.AGS = 2L,
stop.AGS = Inf,
delta0g = FALSE,
...)
Arguments
alpha.d1 |
Shape hyperparameter of the column shrinkage on the first column of the loadings according to the MGP shrinkage prior. Passed to |
alpha.d2 |
Shape hyperparameter of the column shrinkage on the subsequent columns of the loadings according to the MGP shrinkage prior. Passed to |
phi.hyper |
A vector of length 2 giving the shape and rate hyperparameters for the gamma prior on the local shrinkage parameters. Passed to |
sigma.hyper |
A vector of length 2 giving the shape and rate hyperparameters for the gamma prior on the cluster shrinkage parameters. Passed to |
active.crit |
A character string indicating which criterion to use to determine the number of active factors during adaptive Gibbs sampling (i.e. only relevant when |
prop |
Only relevant when
|
eps |
Only relevant when |
adapt |
A logical value indicating whether adaptation of the number of cluster-specific factors is to take place when the MGP prior is employed. Defaults to |
forceQg |
A logical indicating whether the upper limit on the number of cluster-specific factors |
cluster.shrink |
A logical value indicating whether to place the prior specified by |
truncated |
A logical value indicating whether the version of the MGP prior based on left-truncated gamma distributions is invoked (see Zhang et al. reference below and additional relevant documentation in |
b0 , b1 |
Intercept & slope parameters for the exponentially decaying adaptation probability:
Defaults to |
beta.d1 |
Rate hyperparameter of the column shrinkage on the first column of the loadings according to the MGP shrinkage prior. Passed to |
beta.d2 |
Rate hyperparameter of the column shrinkage on the subsequent columns of the loadings according to the MGP shrinkage prior. Passed to |
start.AGS |
The iteration at which adaptation under the AGS is to begin. Defaults to |
stop.AGS |
The iteration at which adaptation under the AGS is to stop completely. Defaults to |
delta0g |
Logical indicating whether the |
... |
Catches unused arguments. |
Value
A named list in which the names are the names of the arguments related to the MGP and AGS and the values are the values supplied to the arguments.
Note
Certain supplied arguments will be subject to further checks by MGP_check
to ensure the cumulative shrinkage property of the MGP prior holds according to the given parameterisation.
The adaptive Gibbs sampler (AGS) monitors the prop
of loadings elements within the neighbourhood eps
of 0 and discards columns or simulates new columns on this basis. However, if at any stage the number of group-specific latent factors reaches zero, the decision to add columns is instead based on a simple binary trial with probability 1-prop
, as there are no loadings entries to monitor.
Author(s)
Keefe Murphy - <keefe.murphy@mu.ie>
References
Murphy, K., Viroli, C., and Gormley, I. C. (2020) Infinite mixtures of infinite factor analysers, Bayesian Analysis, 15(3): 937-963. <doi:10.1214/19-BA1179>.
Durante, D. (2017). A note on the multiplicative gamma process, Statistics & Probability Letters, 122: 198-204.
Bhattacharya, A. and Dunson, D. B. (2011) Sparse Bayesian infinite factor models, Biometrika, 98(2): 291-306.
Schiavon, L. and Canale, A. (2020) On the truncation criteria in infinite factor models, Stat, 9:e298.
Zhang, X., Dunson, D. B., and Carin, L. (2011) Tree-structured infinite sparse factor model. In Getoor, L. and Scheffer, T. (Eds.), Proceedings of the 28th International Conference on Machine Learning (ICML 2011), June 28-July 2, 2011, Bellevue, WA, USA, pp. 785-792. Madison, WI, USA: Omnipress.
See Also
mcmc_IMIFA
, Ledermann
, MGP_check
, ltrgamma
, mixfaControl
, bnpControl
, storeControl
, get_IMIFA_results
Examples
mgpctrl <- mgpControl(phi.hyper=c(2.5, 1), eps=1e-02, truncated=TRUE)
# data(olive)
# sim <- mcmc_IMIFA(olive, "IMIFA", n.iters=5000, MGP=mgpctrl)
# Alternatively specify these arguments directly
# sim <- mcmc_IMIFA(olive, "IMIFA", n.iters=5000,
# phi.hyper=c(2.5, 1), eps=1e-02, truncated=TRUE)
# Use delta0g for a MIFA model with supplied cluster labels
# sim2 <- mcmc_IMIFA(olive, n.iters=5000, method="MIFA", range.G=3,
# z.list=olive$area, delta0g=TRUE, alpha.d1=4:2, alpha.d2=5:3
# sigma.hyper=matrix(c(4:6, rep(2, 3)), nrow=2, byrow=TRUE))