NMixPredCondCDFMarg {mixAK} | R Documentation |
Univariate conditional predictive cumulative distribution function
Description
This function serves as an inference tool for the MCMC output
obtained using the function NMixMCMC
. It computes
(posterior predictive) estimates of univariate conditional cumulative distribution functions.
Usage
NMixPredCondCDFMarg(x, ...)
## Default S3 method:
NMixPredCondCDFMarg(x, icond, prob, scale, K, w, mu, Li, Krandom=FALSE, ...)
## S3 method for class 'NMixMCMC'
NMixPredCondCDFMarg(x, icond, prob, grid, lgrid=50, scaled=FALSE, ...)
## S3 method for class 'GLMM_MCMC'
NMixPredCondCDFMarg(x, icond, prob, grid, lgrid=50, scaled=FALSE, ...)
Arguments
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 |
prob |
a numeric vector. If given then also the posterior
pointwise quantiles of the conditional cdf's are computed for
probabilities given by |
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 list with the grid values for each margin in which
the cdf should be evaluated. The value of If |
lgrid |
a length of the grid used to create the |
scaled |
if |
... |
optional additional arguments. |
Value
An object of class NMixPredCondCDFMarg
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. |
cdf |
a list with the computed conditional cdf's for each
value of |
prob |
a value of the argument |
qXX% |
if |
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.NMixPredCondCDFMarg
, NMixMCMC
, GLMM_MCMC
.