Given an MCMC chain, returns the parameters at the specified index

get_index_pars(chain, samp_no = NULL, index = NULL, chain_no = NULL)

Arguments

chain

the MCMC chain

samp_no

the sample number

index

if not using `samp_no`, the desired row number

chain_no

the chain number to subset

Value

a named vector of parameter values at the selected sample

See also

Other mcmc_diagnostics: get_best_draw(), get_best_pars()

Examples

if (FALSE) { # \dontrun{
mcmc_chains <- load_theta_chains()
pars <- get_index_pars(mcmc_chains$chain, index=100)
} # }