get_index_pars: Index pars

View source: R/helpers.R

get_index_parsR Documentation

Index pars

Description

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

Usage

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', 'index returns the desired row number'

chain_no

the chain number to subset

Value

a named vector of the best parameters

See Also

Other mcmc_diagnostics: get_best_pars()

Examples

## Not run: 
mcmc_chains <- load_theta_chains()
pars <- get_index_pars(mcmc_chains$chain, index=100)

## End(Not run)

adamkucharski/serosolver documentation built on April 13, 2024, 10:24 a.m.