get_index_pars: Get parameters based on index

Description Usage Arguments Value

View source: R/inference.R

Description

From an MCMC chain produced by run_MCMC, return the parameters from the specified sample number (excluding the first and last columns, which are sampno and lnlike respectively).

Usage

1
get_index_pars(chain, index)

Arguments

chain

the MCMC chain as saved by run_MCMC

index

value for sampno, matching the sampno column from the MCMC chain, to be returned

Value

a named vector of model parameters


jameshay218/lazymcmc documentation built on Sept. 16, 2021, 12:14 a.m.