This function returns chains for parameters derived from the (re-labeled) mixture weights, means, covariance matrices.
First, mixture means and shifted-scaled to the original (data) scale, mixture
covariance matrices are scaled to the original (data) scale
(see argument scale
in NMixMCMC
function
or argument scale.b
in GLMM_MCMC
).
Possible derived parameters are standard deviations and correlation coefficients.
NMixChainComp(x, relabel = TRUE, param)# S3 method for default
NMixChainComp(x, relabel = TRUE, param)
# S3 method for NMixMCMC
NMixChainComp(x, relabel = TRUE,
param = c("w", "mu", "var", "sd", "cor", "Sigma", "Q", "Li"))
# S3 method for GLMM_MCMC
NMixChainComp(x, relabel = TRUE,
param = c("w_b", "mu_b", "var_b", "sd_b", "cor_b", "Sigma_b", "Q_b", "Li_b"))
A matrix with sampled values in rows, parameters in columns.
an object of class NMixMCMC
or GLMM_MCMC
.
a logical argument indicating whether the chains are to
be returned with components being re-labeled (see
NMixRelabel
) or whether the chains are to be returned as
originally sampled.
a character string indicating which sample is to be returned:
mixture weights;
mixture means;
mixture variances;
mixture standard deviations;
correlations derived from the mixture covariance matrices;
mixture covariance matrices (their lower triangles);
mixture inverted covariance matrices (their lower triangles);
Cholesky factors (their lower triangles) of the mixture inverted covariance matrices.
Arnošt Komárek arnost.komarek@mff.cuni.cz
NMixMCMC
, GLMM_MCMC
.