Executes EM algorithms with Gibbs sampling on the input data. Optionally saves mixture plots to a temporary directory.
run_estimations_with_gibbs(
data,
bw_sj,
max_iter = 100,
tol = 1e-04,
save_plots = FALSE
)Invisibly returns a list containing fitted parameters for each EM method with Gibbs.
Numeric vector of observations.
Numeric. Bandwidth value (e.g., Silverman's rule).
Integer. Maximum number of EM iterations.
Numeric. Convergence tolerance.
Logical. Whether to save PNG plots to tempdir().