NMixChainsDerived: Create MCMC chains derived from previously sampled values

View source: R/NMixChainsDerived.R

NMixChainsDerivedR Documentation

Create MCMC chains derived from previously sampled values

Description

Currently, this function creates chains for marginal means of exp(data) from previously sampled values (see NMixMCMC). This is useful in survival context when a density of Y=\log(T) is modelled using the function NMixMCMC and we are interested in inference on \mbox{E}T = \mbox{E}\exp(Y).

Usage

NMixChainsDerived(object)

Arguments

object

an object of class NMixMCMC or NMixMCMClist

Value

An object of the same class as argument object. When object was of class NMixMCMC, the resulting object contains additionally the following components:

chains.derived

a data.frame with columns labeled expy.Mean.1, ..., expy.Mean.p containing the sampled values of \mbox{E}\exp(Y_1), ..., \mbox{E}\exp(Y_p).

summ.expy.Mean

posterior summary statistics for \mbox{E}\exp(Y_1), ..., \mbox{E}\exp(Y_p).

When object was of the class NMixMCMClist then each of its components (chains) is augmented by new components chains.derived and summ.expy.Mean.

Author(s)

Arnošt Komárek arnost.komarek@mff.cuni.cz

See Also

NMixMCMC.


mixAK documentation built on Sept. 25, 2023, 5:08 p.m.