该R包为对LCA算法进行的RcppArmadillo加速,在R中有poLCA[CRAN, GitHub]等包的实现。以LCA算法为基础,用相似的方式进行结果的计算,但在利用RcppArmadillo后计算效率有了大幅提升,同时增加多线程计算,使得计算更加快速。
如果推荐的安装说明失败或有其他问题,请检查以下可能的环境是否已安装:
- R packages for installing and compiling:
- Dependent R packages:
- A C++ compiler like gcc
- Armadillo
- LAPACK
- OpenBLAS
devtools::install_github("Misakamimimi/RcppLCA")
- Dziak, J. J., Lanza, S. T., & Tan, X. (2014). Effect size, statistical power, and sample size requirements for the bootstrap likelihood ratio test in latent class analysis. Structural Equation Modeling: A Multidisciplinary Journal, 21(4), 534-552. [link]
- Linzer, D.A. & Lewis, J. (2013). poLCA: Polytomous Variable Latent Class Analysis. R package version 1.4. [link]
- Linzer, D.A. & Lewis, J.B. (2011). poLCA: An R package for polytomous variable latent class analysis. Journal of Statistical Software, 42(10): 1-29. [link]