Marginal (univariate) densities: plug-in estimate
This function serves as an inference tool for the MCMC output
obtained using the function NMixMCMC
. It computes
marginal (univariate) plug-in densities obtained by using posterior
summary statistics (e.g., posterior means) of mixture weights, means
and variances.
NMixPlugDensMarg(x, ...) ## Default S3 method: NMixPlugDensMarg(x, scale, w, mu, Sigma, ...) ## S3 method for class 'NMixMCMC' NMixPlugDensMarg(x, grid, lgrid=500, scaled=FALSE, ...) ## S3 method for class 'GLMM_MCMC' NMixPlugDensMarg(x, grid, lgrid=500, scaled=FALSE, ...)
x |
a list with the grid values (see below) for
An object of class An object of class |
scale |
a two component list giving the |
w |
a numeric vector with posterior summary statistics for the mixture weights. The length of this vector determines the number of mixture components. |
mu |
a matrix with posterior summary statistics for
mixture means in rows. That is, |
Sigma |
a list with posterior summary statistics for mixture covariance matrices. |
grid |
a list with the grid values for each margin in which the density should be evaluated. If |
lgrid |
a length of the grid used to create the |
scaled |
if |
... |
optional additional arguments. |
An object of class NMixPlugDensMarg
which has the following components:
x |
a list with the grid values for each margin. The components
of the list are named |
dens |
a list with the computed densities for each
margin. The components of the list are named |
There is also a plot
method implemented for the resulting object.
Arnošt Komárek arnost.komarek[AT]mff.cuni.cz
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.