Learn R Programming

MixStable (version 0.1.0)

compare_methods_with_gibbs: Compare estimation methods with and without Gibbs sampling

Description

Visualizes and compares mixture fits from EM, ECF (kernel and empirical), and Gibbs sampling.

Usage

compare_methods_with_gibbs(
  data,
  em_params,
  ecf_kernel_params,
  ecf_empirical_params,
  fig_dir = tempdir()
)

Value

NULL (plots are saved to fig_dir)

Arguments

data

Numeric vector of observations.

em_params

List of EM-estimated parameters.

ecf_kernel_params

List of kernel ECF-estimated parameters.

ecf_empirical_params

List of empirical ECF-estimated parameters.

fig_dir

Optional path to save plots. Defaults to tempdir().