Reorder samples according to a predefined ranking

reorder_sample(sample, rank)

Arguments

sample

An mcstate_pmcmc object

rank

A vector of ranks to reorder by

Value

An mcstate_pmcmc object with appropriately reordered elements