This function generates a plot displaying both the marginal density and individual mixture component densities for univariate constrained mixture of generalized normal distribution (CMGND) models. It visually represents how the different components of the mixture model contribute to the overall density.
hist_cmgnd(x, parameters, bins = 80)
A plot illustrating the marginal density along with the densities of the individual mixture components for the given data `x`.
A numeric vector representing the observed data points.
A matrix or data.frame containing the parameters of the CMGND model.
Number of bins. Defaults to 80. Alternatively, this can be an object returned from the `cmgnd()` function, representing an estimated CMGND model.
The function plots the overall (marginal) density curve for the CMGND model, as well as the density curves of each mixture component. This visualization helps in understanding how each component contributes to the model and provides insights into the data distribution.
`cmgnd()` for estimating the model parameters.