Learn R Programming

VBsparsePCA (version 0.1.0)

The Variational Bayesian Method for Sparse PCA

Description

Contains functions for a variational Bayesian method for sparse PCA proposed by Ning (2020) . There are two algorithms: the PX-CAVI algorithm (if assuming the loadings matrix is jointly row-sparse) and the batch PX-CAVI algorithm (if without this assumption). The outputs of the main function, VBsparsePCA(), include the mean and covariance of the loadings matrix, the score functions, the variable selection results, and the estimated variance of the random noise.

Copy Link

Version

Install

install.packages('VBsparsePCA')

Monthly Downloads

225

Version

0.1.0

License

GPL-3

Maintainer

Bo Ning

Last Published

February 12th, 2021

Functions in VBsparsePCA (0.1.0)

foldednorm.mean

The function for obtaining the mean of a folded normal distribution
spca.cavi.mvn

Function for the PX-CAVI algorithm using the multivariate normal slab
spca.cavi.Laplace

Function for the PX-CAVI algorithm using the Laplace slab
VBsparsePCA

The main function for the variational Bayesian method for sparse PCA