Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
/ blavaan Public

❗ This is a read-only mirror of the CRAN R package repository. blavaan — Bayesian Latent Variable Analysis. Homepage: https://ecmerkle.github.io/blavaan/https://github.com/ecmerkle/blavaan Report bugs for this package: https://github.com/ecmerkle/blavaan/issues

Notifications You must be signed in to change notification settings

cran/blavaan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blavaan

blavaan is a free, open source R package for Bayesian latent variable analysis. It relies on JAGS and Stan to estimate models via MCMC.

The blavaan functions and syntax are similar to lavaan. For example, consider the Political Democracy example from Bollen (1989):

library(blavaan)

model <- '
   # latent variable definitions
     ind60 =~ x1 + x2 + x3
     dem60 =~ y1 + y2 + y3 + y4
     dem65 =~ y5 + y6 + y7 + y8
   # regressions
     dem60 ~ ind60
     dem65 ~ ind60 + dem60
   # residual covariances
     y1 ~~ y5
     y2 ~~ y4 + y6
     y3 ~~ y7
     y4 ~~ y8
     y6 ~~ y8
'
fit <- bsem(model, data=PoliticalDemocracy)
summary(fit)

For further information, see:

Merkle, E. C., & Rosseel, Y. (2018). blavaan: Bayesian structural equation models via parameter expansion. Journal of Statistical Software, 85(4), 1–30.

About

❗ This is a read-only mirror of the CRAN R package repository. blavaan — Bayesian Latent Variable Analysis. Homepage: https://ecmerkle.github.io/blavaan/https://github.com/ecmerkle/blavaan Report bugs for this package: https://github.com/ecmerkle/blavaan/issues

Resources

Stars

Watchers

Forks

Packages

No packages published