Learn R Programming

factor.switching (version 1.4)

Post-Processing MCMC Outputs of Bayesian Factor Analytic Models

Description

A well known identifiability issue in factor analytic models is the invariance with respect to orthogonal transformations. This problem burdens the inference under a Bayesian setup, where Markov chain Monte Carlo (MCMC) methods are used to generate samples from the posterior distribution. The package applies a series of rotation, sign and permutation transformations (Papastamoulis and Ntzoufras (2022) ) into raw MCMC samples of factor loadings, which are provided by the user. The post-processed output is identifiable and can be used for MCMC inference on any parametric function of factor loadings. Comparison of multiple MCMC chains is also possible.

Copy Link

Version

Install

install.packages('factor.switching')

Monthly Downloads

263

Version

1.4

License

GPL-2

Maintainer

Panagiotis Papastamoulis

Last Published

February 12th, 2024

Functions in factor.switching (1.4)

procrustes_switching

Orthogonal Procrustes rotations
plot.rsp

Plot posterior means and credible regions
rsp_full_sa

Rotation-Sign-Permutation (RSP) algorithm (Full Simulated Annealing)
rsp_exact

Rotation-Sign-Permutation (RSP) algorithm (Exact scheme)
compareMultipleChains

Compare multiple chains
switch_and_permute

Apply sign switchings and column permutations
rsp_partial_sa

Rotation-Sign-Permutation (RSP) algorithm (Partial Simulated Annealing)
credible.region

Compute a simultaneous credible region (rectangle) from a sample for a vector valued parameter.
factor.switching-package

tools:::Rd_package_title("factor.switching")
weighted_procrustes_switching

Weighted Orthogonal Procrustes rotations
small_posterior_2chains

Example data