Function to sort Hierarchical MCMC samples

pda.sort.params(
  mcmc.out,
  sub.sample = "mu_global_samp",
  ns = NULL,
  prior.all,
  prior.ind.all.ns,
  sf = NULL,
  n.param.orig,
  prior.list,
  prior.fn.all
)

Arguments

mcmc.out

MCMC samples

sub.sample

which subsample to return

ns

site number

prior.all

prior dataframe

prior.ind.all.ns

indices of targeted parameters on the prior.all dataframe

sf

scaling factor if used

n.param.orig

original indices of parameters on the prior.list

prior.list

list of prior dataframes

prior.fn.all

prior functions