Description Usage Arguments Value See Also Examples
View source: R/cull_posterior_samples.R
Extend the 'burn-in' period and reduce the number of posterior samples taken
from a sampling chain by culling the first ncull
posterior samples.
If components have been previously calculated for this sampling chain, they
will be removed and must be recalculated.
1 | cull_posterior_samples(chain, ncull)
|
chain |
A hdpSampleChain object |
ncull |
The number of posterior samples to cull |
A hdpSampleChain object with the designated 'burn-in' period extended,
and the number of posterior samples reduced by ncull
plot_lik
, plot_numcluster
,
plot_data_assigned
1 2 3 4 5 6 | mut_example_chain <- chains(mut_example_multi)[[2]]
plot_lik(mut_example_chain)
plot_numcluster(mut_example_chain)
chain_adj <- cull_posterior_samples(mut_example_chain, 20)
plot_lik(chain_adj)
plot_numcluster(chain_adj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.