Learn R Programming

MixStable (version 0.1.0)

plot_fit_vs_true_methods: Compare estimated mixture densities from two methods against the true density

Description

Plots the true mixture density and compares it with two estimated densities obtained from different methods (e.g., MLE vs ECF).

Usage

plot_fit_vs_true_methods(
  data,
  true_params,
  method1 = "MLE",
  method2 = "ECF",
  bins = 100
)

Value

NULL (plot is displayed)

Arguments

data

Numeric vector of observations.

true_params

List of true mixture components.

method1

First estimation method ("MLE", "ECF", etc.).

method2

Second estimation method.

bins

Number of histogram bins.