View source: R/c_chains_to_dataframe.R
c_chains_to_dataframe | R Documentation |
From coupled chains,
presumably generated via sample_coupled_chains
,
and a choice of integers k and m, the function constructs
a data frame representation of an empirical signed measure, i.e.
\hat{π}(dx) = ∑_{n=1}^N ω_n δ_{Z_n}(dx)
The function returns a data frame with first column "rep" indicating index of coupled chain, second column "MCMC" indicating whether atom is part of the "MCMC" part of the signed measure (1) or the bias correction part (0) third column "weight" indicating weights, remaining columns "atom.1", "atom.2", etc containing components of the atoms
c_chains_to_dataframe(c_chains, k, m, dopar = FALSE, prune = TRUE)
c_chains |
A list containing coupled chains generated by |
k |
An integer at which to start computing the signed measure; should be less than m |
m |
A time horizon: should be less than the length of the chains; typically the same
m that was used in the call to |
dopar |
Boolean (default to FALSE) indicating whether to perform calculation using registered parallel cores |
A data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.