Package: LAM 0.7-22

Alexander Robitzsch

LAM: Some Latent Variable Models

Includes some procedures for latent variable modeling with a particular focus on multilevel data. The 'LAM' package contains mean and covariance structure modelling for multivariate normally distributed data (mlnormal(); Longford, 1987; <doi:10.1093/biomet/74.4.817>), a general Metropolis-Hastings algorithm (amh(); Roberts & Rosenthal, 2001, <doi:10.1214/ss/1015346320>) and penalized maximum likelihood estimation (pmle(); Cole, Chu & Greenland, 2014; <doi:10.1093/aje/kwt245>).

Authors:Alexander Robitzsch [aut,cre]

LAM_0.7-22.tar.gz
LAM_0.7-22.tar.gz(r-4.5-noble)LAM_0.7-22.tar.gz(r-4.4-noble)
LAM_0.7-22.tgz(r-4.4-emscripten)LAM_0.7-22.tgz(r-4.3-emscripten)
LAM.pdf |LAM.html
LAM/json (API)
NEWS

# Install 'LAM' in R:
install.packages('LAM', repos = 'https://cloud.r-project.org')

Bug tracker:https://github.com/alexanderrobitzsch/lam/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

openblascpp

3.18 score 1 packages 334 downloads 46 mentions 7 exports 12 dependencies

Last updated 9 months agofrom:a4381a6051. Checks:3 OK. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKMar 13 2025
R-4.5-linux-x86_64OKMar 13 2025
R-4.4-linux-x86_64OKMar 13 2025

Exports:amhclpm_to_ctmloglike_mvnormloglike_mvnorm_NA_patternmlnormalpmlesuff_stat_NA_pattern

Dependencies:admiscCDMlatticeMatrixmvtnormpbapplypbvpolycorRcppRcppArmadillosirtTAM

Citation

To cite the 'LAM' package in publications use:

Robitzsch, A. (2024). LAM: Some latent variable models. R package version 0.7-22. https://CRAN.R-project.org/package=LAM

Corresponding BibTeX entry:

  @Manual{,
    title = {LAM: Some latent variable models},
    author = {Alexander Robitzsch},
    year = {2024},
    note = {R package version 0.7-22},
    url = {https://CRAN.R-project.org/package=LAM},
    doi = {10.32614/CRAN.package.LAM},
  }

Readme and manuals

LAM

Some Latent Variable Models

If you use LAM and have suggestions for improvement or have found bugs, please email me at robitzsch@leibniz-ipn.de. Please always provide a minimal dataset, necessary to demonstrate the problem, a minimal runnable code necessary to reproduce the issue, which can be run on the given dataset, and all necessary information on the used librarys, the R version, and the OS it is run on, perhaps a sessionInfo().

Manual

The manual may be found here https://alexanderrobitzsch.github.io/LAM/

CRAN version

The official version of LAM is hosted on CRAN and may be found here. The CRAN version can be installed from within R using:

utils::install.packages("LAM")
GitHub version

The version hosted here is the development version of LAM. The GitHub version can be installed using devtools as:

devtools::install_github("alexanderrobitzsch/LAM")

Help Manual

Help pageTopics
Some Latent Variable ModelsLAM-package LAM
Bayesian Model Estimation with Adaptive Metropolis Hastings Sampling ('amh') or Penalized Maximum Likelihood Estimation ('pmle')amh coef.amh coef.pmle confint.amh confint.pmle logLik.amh logLik.pmle plot.amh plot.pmle pmle summary.amh summary.pmle vcov.amh vcov.pmle
Transformation of Path Coefficients of Cross-Lagged Panel Modelclpm_to_ctm
Datasets from Heck and Thomas (2015)data.HT data.HT12
Log-Likelihood Value of a Multivariate Normal Distributionloglike_mvnorm loglike_mvnorm_NA_pattern
(Restricted) Maximum Likelihood Estimation with Prior Distributions and Penalty Functions under Multivariate Normalitycoef.mlnormal confint.mlnormal logLik.mlnormal mlnormal print.mlnormal summary.mlnormal vcov.mlnormal
Sufficient Statistics for Dataset with Missing Response Patternsuff_stat_NA_pattern