R/postfit_coef_samples.R
combine_TOP_samples.Rd
Combines and takes the average of TOP posterior samples from all partitions.
combine_TOP_samples(TOP_samples_files, thin = 1, n_samples = 1000)
Files of TOP posterior samples from all partitions.
Thinning rate of extract the posterior samples, must be a positive integer (default = 1, no thinning performed).
Keeps n
posterior samples (randomly choose),
when the number of posterior samples is greater than n
.
A data frame of combined and averaged posterior samples.
if (FALSE) {
# Randomly selects 1000 posterior samples from each partition.
# Then, combines and takes the average of the posterior samples from all partitions.
TOP_samples <- combine_TOP_samples(TOP_samples_files, n_samples = 1000)
}