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;
If you use
LAM and have suggestions for improvement or have found bugs, please email me at [email protected].
The official version of
LAM is hosted on CRAN and may be found here.
The CRAN version can be installed from within R using:
The version hosted here is the development version of
The GitHub version can be installed using
**** CHANGES IN LAM PACKAGE VERSIONS ****
Some Latent Variable Models (LAM) A. Robitzsch
/\ \ /\ __ \ /\ "-./ \
\ \ ____ \ \ __ \ \ \ -./\ \
\ _\ \ _\ _\ \ _\ \ _\ /_____/ //// // //
Alexander Robitzsch [email protected]
For reporting a bug, please always provide a reproducible R script and (if necessary) a corresponding dataset.
ADDED * included Rcpp implementations for loglike_mvnorm() and loglike_mvnorm_NA_pattern() functions NOTE * optimization function stats::nlminb() can be used in the pmle() function as an alternative to stats::optim() NOTE * added 'numDeriv' package to the list of imported packages NOTE * included argument 'proposal_equal' in amh() NOTE * set the argument 'prior=NULL' as the default in pmle() ADDED * included argument 'model_grad' in pmle() which allows the specification of the gradient of the log-likelihood function
DATA * included/modified datasets: --- EXAMP * included/modified examples: amh (1)
ADDED * included function suff_stat_NA_pattern() which computes sufficient statistics for a given dataset with missing response patterns ADDED * included function loglike_mvnorm_NA_pattern() which computed the multivariate normal log-likelihood for data with missing response patterns NOTE * fixed a problem with only one phase for tuning proposal distribution
DATA * included/modified datasets: --- EXAMP * included/modified examples: suff_stat_NA_pattern (1), loglike_mvnorm (2)
NOTE * added Example 3 in amh() which was transferred from the 'STARTS' package to the 'LAM' package
DATA * included/modified datasets: --- EXAMP * included/modified examples: amh (3)
ADDED * moved amh(), loglike_mvnorm(), mlnormal() and pmle() functions from 'sirt' package to 'LAM' package NOTE * included value acceptance_rates_history() in amh() containing acceptance rates of parameters during burn-in phase
DATA * included/modified datasets: --- EXAMP * included/modified examples: ---