NMixPredCDFMarg {mixAK} | R Documentation |
Marginal (univariate) predictive cumulative distribution function
Description
This function serves as an inference tool for the MCMC output
obtained using the function NMixMCMC
. It computes
estimated posterior predictive cumulative distribution function for each margin.
Usage
NMixPredCDFMarg(x, ...)
## Default S3 method:
NMixPredCDFMarg(x, scale, K, w, mu, Li, Krandom=TRUE, ...)
## S3 method for class 'NMixMCMC'
NMixPredCDFMarg(x, grid, lgrid=500, scaled=FALSE, ...)
## S3 method for class 'GLMM_MCMC'
NMixPredCDFMarg(x, grid, lgrid=500, 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 |
K |
either a number (when |
w |
a numeric vector with the chain for the mixture weights. |
mu |
a numeric vector with the chain for the mixture means. |
Li |
a numeric vector with the chain for the mixture inverse variances (lower triangles only). |
Krandom |
a logical value which indicates whether the number of mixture components changes from one iteration to another. |
grid |
a numeric vector or a list with the grid values in which the predictive CDF should be evaluated. If If |
lgrid |
a length of the grid used to create the |
scaled |
if |
... |
optional additional arguments. |
Value
An object of class NMixPredCDFMarg
which has the following components:
x |
a list with the grid values for each margin. The components
of the list are named |
freqK |
frequency table for the values of |
propK |
proportions derived from |
MCMC.length |
the length of the MCMC used to compute the predictive cdf's. |
cdf |
a list with the computed predictive CDF's for each
margin. The components of the list are named |
cdfK |
a list with the computed predictive CDF's for each
margin, conditioned further by Note that |
There is also a plot
method implemented for the resulting object.
Author(s)
Arnošt Komárek arnost.komarek@mff.cuni.cz
References
Komárek, A. (2009). A new R package for Bayesian estimation of multivariate normal mixtures allowing for selection of the number of components and interval-censored data. Computational Statistics and Data Analysis, 53(12), 3932–3947.
See Also
plot.NMixPredCDFMarg
, NMixMCMC
, GLMM_MCMC
.