Skip to contents

Calculate the geometric median of the posterior distribution of allele frequencies

Usage

calculate_med_allele_freqs(mcmc_results, merge_chains = TRUE)

Arguments

mcmc_results

Result of calling run_mcmc()

merge_chains

boolean indicating that all chain results should be merged

Details

Returns the geometric median of the posterior distribution, defined as the point minimizing the L2 distance from each sampled point.