NMixPlugDensJoint2 {mixAK} | R Documentation |
Pairwise bivariate densities: plug-in estimate
Description
This function serves as an inference tool for the MCMC output
obtained using the function NMixMCMC
. It computes
marginal (pairwise bivariate) plug-in densities obtained by using posterior
summary statistics (e.g., posterior means) of mixture weights, means
and variances.
Usage
NMixPlugDensJoint2(x, ...)
## Default S3 method:
NMixPlugDensJoint2(x, scale, w, mu, Sigma, ...)
## S3 method for class 'NMixMCMC'
NMixPlugDensJoint2(x, grid, lgrid=50, scaled=FALSE, ...)
## S3 method for class 'GLMM_MCMC'
NMixPlugDensJoint2(x, grid, lgrid=50, scaled=FALSE, ...)
Arguments
x |
an object of class An object of class A list with the grid values (see below) for
|
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 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. |
Value
An object of class NMixPlugDensJoint2
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
pair of margins. The components of the list are named |
There is also a plot
method implemented for the resulting object.
Author(s)
Arnošt Komárek arnost.komarek@mff.cuni.cz
See Also
plot.NMixPlugDensJoint2
, NMixMCMC
, GLMM_MCMC
, NMixPredDensJoint2
.