powered by
Thin a bstrlstate object by keeping only one sample every n, until the desired count remains.
thinsamples(state, count)
An object of class bstrlstate, containing count samples.
Object of class bstrlstate, output by bipartiteRL, SMCMCupdate, PPRBupdate, or multifileRL
The number of desired samples after filtering
This is useful to do before an SMCMC update. SMCMC produces independent samples, so fewer are required to get the same quality estimates.
data(geco_small_result) filtered <- thinsamples(geco_small_result, 50) stopifnot(ncol(filtered$Z) == 50)
Run the code above in your browser using DataLab