Learn R Programming

MixStable (version 0.1.0)

run_estimations_with_gibbs: Run all EM-based estimations with Gibbs sampling (CRAN-safe)

Description

Executes EM algorithms with Gibbs sampling on the input data. Optionally saves mixture plots to a temporary directory.

Usage

run_estimations_with_gibbs(
  data,
  bw_sj,
  max_iter = 100,
  tol = 1e-04,
  save_plots = FALSE
)

Value

Invisibly returns a list containing fitted parameters for each EM method with Gibbs.

Arguments

data

Numeric vector of observations.

bw_sj

Numeric. Bandwidth value (e.g., Silverman's rule).

max_iter

Integer. Maximum number of EM iterations.

tol

Numeric. Convergence tolerance.

save_plots

Logical. Whether to save PNG plots to tempdir().