LAWBL: Latent (variable) Analysis with Bayesian Learning

Project Status: Active ? The project has reached a stable, usable state and is being actively developed. CRAN_Status_Badge

How to cite the package

Chen, J. (2020). LAWBL: Latent (variable) analysis with Bayesian learning (R package version 1.3.0). Retrieved from https://CRAN.R-project.org/package=LAWBL

Installation

  1. Install the stable version from CRAN with:
install.packages("LAWBL")
  1. Install the devtools package (if necessary), and install the development version from the Github.
# install.packages("devtools")
devtools::install_github("Jinsong-Chen/LAWBL")

What can this package do

The long-term goal of LAWBL is to provide an analytical framework for modeling latent variables with different Bayesian learning methods.

Currently, this package includes the Partially Confirmatory Factor Analysis (PCFA) model for continuous data (Chen, Guo, Zhang, & Pan, 2020), the generalized PCFA (GPCFA) model covering continuous, categorical, and mixed-type data, and the partially confirmatory item response model (PCIRM) for continuous and dichotomous data with intercept terms (Chen, 2020). The three models represent a partially confirmatory approach covering a wide range of the exploratory-confirmatory continuum under the context of factor analysis and item response theory. For PCFA, GPCFA, and PCIRM, there are two major model variants with different constraints for identification. One assumes local independence (LI) with a more exploratory tendency, which can be also called the E-step. The other allows local dependence (LD) with a more confirmatory tendency, which can be also called the C-step. Parameters are obtained by sampling from the posterior distributions with the Markov chain Monte Carlo (MCMC) techniques. Different Bayesian Lasso methods are used to regularize the loading pattern and local dependence.

For examples of how to use the package, see vignettes or

How to use this package in brief

Reference

Chen, J., Guo, Z., Zhang, L., & Pan, J. (2020). A partially confirmatory approach to scale development with the Bayesian Lasso. Psychological Methods. Advance online publication. http://dx.doi.org/10.1037/met0000293.

Chen, J. (2020). A partially confirmatory approach to the multidimensional item response theory with the Bayesian Lasso. Psychometrika. 85(3), 738-774. DOI: 10.1007/s11336-020-09724-3.