vbmfa: Variational Bayesian Mixture of Factor Analyzers (VB-MoFA)

Description Usage Arguments Value References See Also Examples

View source: R/vbmfa.R

Description

An implementation of the Variational Bayesian Mixutre of Factor Analysers \insertCiteghahramani2000variationalautoMFA. This code is an R port of the MATLAB code which was written by M.J.Beal and released alongside their paper.

Usage

1
vbmfa(Y, qmax = NULL, maxtries = 3, verbose = FALSE, varimax = FALSE)

Arguments

Y

An n by p (normalised) data matrix (i.e. the result of a call to the function preprocess), where n is the number of observations and p is the number of dimensions of the data.

qmax

Maximum factor dimensionality (default p-1).

maxtries

The maximum number of times the algorithm will attempt to split each component.

verbose

Whether or not verbose output should be printed during the model fitting process (defaults to false).

varimax

Boolean indicating whether the output factor loading matrices should be constrained using varimax rotation or not.

Value

A list containing the following elements:

References

\insertRef

ghahramani2000variationalautoMFA

See Also

preprocess for centering and scaling data prior to using vbmfa.

Examples

1
2
3
RNGversion('4.0.3'); set.seed(3)
Yout <- preprocess(MFA_testdata)
MFA.fit <- vbmfa(Yout$Yout, maxtries = 2)

autoMFA documentation built on Aug. 10, 2021, 5:07 p.m.