Learn R Programming

cmgnd (version 0.1.1)

hist_cmgnd: Plot Marginal and Mixture Component Densities of the CMGND Model

Description

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.

Usage

hist_cmgnd(x, parameters, bins = 80)

Value

A plot illustrating the marginal density along with the densities of the individual mixture components for the given data `x`.

Arguments

x

A numeric vector representing the observed data points.

parameters

A matrix or data.frame containing the parameters of the CMGND model.

bins

Number of bins. Defaults to 80. Alternatively, this can be an object returned from the `cmgnd()` function, representing an estimated CMGND model.

Details

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.

See Also

`cmgnd()` for estimating the model parameters.