polyfreqs_pps(p_post, tM, rM, ploidy, error)
polyfreqs
run.Uses the posterior distribution of allele frequences from a polyfreqs
run to test model fit using the posterior predictive model checking procedure described in Blischak et al.
The observed read count ratio (r/t) for each locus is summed across individuals and then compared to a distribution of read ratios simulated using the posterior allele frequencies by taking their difference. The criterion for passing/failing the posterior predictive check is then made on a per locus basis based on whether or not the distribution of read ratio differences contains 0 in the 95
Blischak PD, LS Kubatko and AD Wolfe. Accounting for genotype uncertainty in the estimation of allele frequencies in autopolyploids. In revision.