load_mcmc_chains: Read in MCMC chains

Description Usage Arguments Value

View source: R/analyses.R

Description

Loads all available MCMC chains from the chosen working directory, allowing the user to specify properties of the return chain

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
load_mcmc_chains(
  location = "",
  parTab,
  unfixed = TRUE,
  thin = 1,
  burnin = 1e+05,
  multi = TRUE,
  chainNo = FALSE,
  PTchain = FALSE
)

Arguments

location

Either the full file path to the MCMC chain containing directory, or a vector of file paths with the MCMC chainsa

parTab

the parameter table that was used to solve the model (mainly used to find which were free parameters)

unfixed

Boolean, if TRUE, only returns free parameters

thin

thin chain by this much

burnin

number of iterations to discard

multi

if TRUE, looks for chains generated using the multivariate sampler. Otherwise, looks for univariate sampled chains.

chainNo

if TRUE, adds the chain number to the MCMC chain as a column

PTchain

DEV - if TRUE, looks for chains generated by the parallel tempering algorithm

Value

a list containing both the MCMC chains appended to each other, and an MCMC list.


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