Skip to contents

Plot model parameters

Usage

bmasem_plot(object, type = "trace", subset = NULL, ...)

Arguments

object

(bmasem) An object of bmasem-class returned by bmasem.

type

(character) Type of plot: "trace" for traceplots and "hist" for histograms.

subset

(character) Subset of parameters: NULL (Default) showing all estimated parameters; Any other response will be used as regular expressions to subset the parameters. It can be loading names or types of parameters.

...

additional arguments to relevant bayesplot function

Value

bayesplot object

Examples

if (FALSE) {
model_syntax <- paste0(
  "distress =~ ", paste0("x", 1:14, collapse = " + "), "\n",
  "anxiety =~ ", paste0("x", seq(1, 14, 2), collapse = " + "), "\n",
  "depression =~ ", paste0("x", seq(2, 14, 2), collapse = " + ")
)
bmasem(
  model_syntax,
  sample_cov = Norton13$data, sample_nobs = Norton13$n, orthogonal = TRUE
)
bmasem_plot(fit)
}