# load example mcmc.list
data(cjs)
# take note of original dimensions
post_dim(cjs)
# keep ~20% of the samples
cjs_thin1 = post_thin(cjs, keep_percent = 0.2)
# note burn-in and thin intervals no longer correct!
# but desired outcome achieved - identical object but smaller
post_dim(cjs_thin1)
# keep 30 samples per chain
cjs_thin2 = post_thin(cjs, keep_iters = 30)
post_dim(cjs_thin2)
Run the code above in your browser using DataLab