View source: R/NMixPlugCondDensMarg.R
| NMixPlugCondDensMarg | R Documentation |
This function serves as an inference tool for the MCMC output
obtained using the function NMixMCMC. It computes
estimates of univariate conditional densities obtained by using posterior
summary statistics (e.g., posterior means) of mixture weights, means
and variances (plug-in estimate).
NMixPlugCondDensMarg(x, ...)
## Default S3 method:
NMixPlugCondDensMarg(x, icond, scale, w, mu, Sigma, ...)
## S3 method for class 'NMixMCMC'
NMixPlugCondDensMarg(x, icond, grid, lgrid=50, scaled=FALSE, ...)
## S3 method for class 'GLMM_MCMC'
NMixPlugCondDensMarg(x, icond, grid, lgrid=50, scaled=FALSE, ...)
x |
an object of class An object of class A list with the grid values (see below) for
|
icond |
index of the margin by which we want to condition |
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. The value of If |
lgrid |
a length of the grid used to create the |
scaled |
if |
... |
optional additional arguments. |
An object of class NMixPlugCondDensMarg which has the following components:
x |
a list with the grid values for each margin. The components
of the list are named |
icond |
index of the margin by which we condition. |
dens |
a list with the computed conditional densities for each
value of |
There is also a plot method implemented for the resulting object.
Arnošt Komárek arnost.komarek@mff.cuni.cz
plot.NMixPlugCondDensMarg, NMixMCMC, GLMM_MCMC, NMixPredCondDensMarg.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.