Skip to contents

Approximate Bayesian estimation of latent variable models

Main lavaan-style functions to estimate SEM.

inlavaan()
Fit an Approximate Bayesian Latent Variable Model
acfa()
Fit an Approximate Bayesian Confirmatory Factor Analysis Model
asem()
Fit an Approximate Bayesian Structural Equation Model
agrowth()
Fit an Approximate Bayesian Growth Curve Model
priors_for()
Specify priors for a SEM

Methods

coef(<INLAvaan>) nobs(<INLAvaan>) show(<INLAvaan>) summary(<INLAvaan>)
Class For Representing a (Fitted) Latent Variable Model
standardisedsolution() standardisedSolution() standardizedsolution() standardizedSolution()
Standardised solution of a latent variable model
diagnostics()
Convergence and Approximation Diagnostics for INLAvaan Models
timing()
Timing Information for INLAvaan Models
fitMeasures(<INLAvaan>) fitmeasures(<INLAvaan>)
Fit Measures for a Latent Variable Model estimated using INLA
bfit_indices() summary(<bfit_indices>) print(<bfit_indices>)
Bayesian Fit Indices
compare()
Compare Bayesian Models Fitted with INLAvaan
plot(<INLAvaan>,<ANY>)
Plot an INLAvaan Object
vcov(<INLAvaan>)
Variance-Covariance Matrix for INLAvaan Models
predict(<INLAvaan>)
Posterior Predictions for INLAvaan Models
simulate(<INLAvaan>)
Simulate Datasets from the Generative Model
sampling()
Draw Samples from the Generative Model

Utility functions

dbeta_box()
Density of a Beta distribution on a bounded interval
dsnorm()
The Skew Normal Distribution
qsnorm_fast()
Fast Approximation of Skew-Normal Quantile Function
fit_skew_normal()
Fit a skew normal distribution to log-density evaluations
fit_skew_normal_samp()
Fit a skew normal distribution to a sample
is_same_function()
Helper function to check if two functions are the same
as_fun_string()
Convert function to single string
get_inlavaan_internal()
Extract the Internal INLAvaan Object