Given an MCMC chain, returns the parameter values from the row with the highest posterior probability.

get_best_pars(chain)

Arguments

chain

the MCMC chain

Value

a named vector of parameter values from the maximum-posterior row

See also

Other mcmc_diagnostics: get_best_draw(), get_index_pars()

Examples

if (FALSE) { # \dontrun{
mcmc_chains <- load_theta_chains()
best_pars <- get_best_pars(mcmc_chains$chain)
} # }