Distance between binned draws (rank for SBC) and discrete uniform

rank2unif(results, par, bins = 20)

Arguments

par

names of parameter to plot

bins

number of bins to use for summary

ranks

array of dimension (n_iter, n_pars) where n_iter=number of posterior draw iterations, n_pars the number of parameters of interest

thin

integer in which thinning was applied