Learn R Programming

blatent

Bayesian Latent Variable Models in R

Changelist

Version 0.1.2RC1

  • Fixed bug in syntax reading that did not allow for multiple non-list variables on left-hand side of model equation
  • Fixed bug in calculation of latent variable summaries for BayesNets specifications
  • Implemented check for observed variables that are listed in model but are non-numeric class in input data
  • Created two plot functions:
    • plot(model, type="fit-heatmap") for heatmaps of discrepancies when PPMC covariance, Pearson correlation, and/or tetrachoric correlation are used
    • plot(model, type="nonconverged", PSRFcut = 1.1) for plotting trace and density plots of MCMC chains for model parameters with PSRF > PSRFcut
  • Fixed an issue where joint variables could have appeared in model statements as DVs
  • Fixed an issue where DVs could be listed multiple times

Copy Link

Version

Install

install.packages('blatent')

Monthly Downloads

276

Version

0.1.2

License

GPL (>= 2)

Maintainer

Jonathan Templin

Last Published

December 8th, 2023

Functions in blatent (0.1.2)

observed

Declares observed variables in a blatent model
QmatrixToBlatentSyntax

Convert a rectangular Q-matrix into blatent model syntax
blatentEstimate

Use blatent to estimate a Bayesian latent variable model. Currently supports estimation of the LCDM (Loglinar Cognitive Diagnosis Model).
blatentPPMC

blatentPPMC
blatentControl

blatent estimation specifications
calculateWAIC

calculateWAIC
blatentSyntax

Syntax specifications for blatent
blatent

blatent: A package for estimating Bayesian latent variable models.
createParameterVector

Creates named numeric vector with parameter names for analysis specified by modelText
setDefaultInitializeParameters

Sets the distribution parameters for initializing all parameters
setDefaultSimulatedParameters

Creates simulation specifications for simulating data in blatent
calculateDIC

calculateDIC
setDefaultPriors

Sets the prior distribution parameters for all parameters not named in priorsList
setPosteriorPredictiveCheckOptions

Posterior Predictive Model Checking Options
blatentSimulate

Simulates data using blatent syntax and simulated parameters input
latent

Declares latent variables in a blatent model