Get coda object

Share:

Description

Returns an mcmc object for use in coda functions for convergence diagnostics, HPD intervals, etc.

Usage

1
2
get_coda(model, loadings = TRUE, scores = FALSE, scale = attr(model,
  "type") != "gauss", positive = FALSE)

Arguments

model

a bfa model

loadings

Return samples of the factor loadings? (default is TRUE)

scores

Return samples of the factor scores? (default is FALSE)

scale

Return factor loadings on the correlation scale? (default is TRUE for mixed/copula models, FALSE for Gaussian models)

positive

Post-process to enforce positivity constraints

Value

An mcmc object