Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dpriors

Specify default prior distributions


Description

Specify "default" prior distributions for classes of model parameters.

Usage

dpriors(..., target = "stan")

Arguments

...

Parameter names paired with desired priors (see example below).

target

Are the priors for jags, stan (default), or stanclassic?

Details

The prior distributions always use JAGS/Stan syntax and parameterizations. For example, the normal distribution in JAGS is parameterized via the precision, whereas the normal distribution in Stan is parameterized via the standard deviation.

User-specified prior distributions for specific parameters (using the prior() operator within the model syntax) always override prior distributions set using dpriors().

The parameter names are:

  • nu: Observed variable intercept parameters.

  • alpha: Latent variable intercept parameters.

  • lambda: Loading parameters.

  • beta: Regression parameters.

  • itheta: Observed variable precision parameters.

  • ipsi: Latent variable precision parameters.

  • rho: Correlation parameters (associated with covariance parameters).

  • ibpsi: Inverse covariance matrix of blocks of latent variables (used for target="jags").

  • tau: Threshold parameters (ordinal data only).

  • delta: Delta parameters (ordinal data only).

Value

A character vector containing the prior distribution for each type of parameter.

References

Edgar C. Merkle & Yves Rosseel (2018). blavaan: Bayesian Structural Equation Models via Parameter Expansion. Journal of Statistical Software, 85(4), 1-30. URL http://www.jstatsoft.org/v85/i04/.

See Also

Examples

dpriors(nu = "normal(0,10)", lambda = "normal(0,1)", rho = "beta(3,3)")

blavaan

Bayesian Latent Variable Analysis

v0.3-15
GPL (>= 3)
Authors
Edgar Merkle [aut, cre] (<https://orcid.org/0000-0001-7158-0653>), Yves Rosseel [aut], Ben Goodrich [aut], Mauricio Garnier-Villarreal [ctb] (<https://orcid.org/0000-0002-2951-6647>, R/blav_compare.R, R/ctr_bayes_fit.R), Terrence D. Jorgensen [ctb] (<https://orcid.org/0000-0001-5111-6773>, R/ctr_bayes_fit.R, R/ctr_ppmc.R), Huub Hoofs [ctb] (R/ctr_bayes_fit.R), Rens van de Schoot [ctb] (R/ctr_bayes_fit.R)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.