Learn R Programming

mixAK (version 3.4)

NMixChainComp: Chains for mixture parameters

Description

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.

Usage

NMixChainComp(x, relabel = TRUE, param)

## S3 method for class 'default': NMixChainComp(x, relabel = TRUE, param)

## S3 method for class 'NMixMCMC': NMixChainComp(x, relabel = TRUE, param = c("w", "mu", "var", "sd", "cor", "Sigma", "Q", "Li"))

## S3 method for class 'GLMM_MCMC': NMixChainComp(x, relabel = TRUE, param = c("w_b", "mu_b", "var_b", "sd_b", "cor_b", "Sigma_b", "Q_b", "Li_b"))

Arguments

x
an object of class NMixMCMC or GLMM_MCMC.
relabel
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.
param
a character string indicating which sample is to be returned: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Value

  • A matrix with sampled values in rows, parameters in columns.

See Also

NMixMCMC, GLMM_MCMC.