load_mcmc_chains: Load MCMC chains

Description Usage Arguments Value

View source: R/post_analyses.R

Description

From a working directory with MCMC chains (files ending chain.csv), reads these in and puts them into an MCMC list

Usage

1
2
load_mcmc_chains(location = "", asList = FALSE, convertMCMC = FALSE,
  unfixed = TRUE, thin = 1, burnin = 1e+05, unique_names = TRUE)

Arguments

location

the path to the directory to read from

asList

if TRUE, returns the MCMC chains as a list

convertMCMC

if TRUE, converts the chains to mcmc objects (coda)

unfixed

if TRUE, only includes columns for estimated parameters (not fixed parameters)

thin

thins the read in MCMC chains by the specified amount (useful for speed when testing)

burnin

discards the burn in period

unique_names

if TRUE, gives column names as if read in by read.csv

Value

the list or data frame of MCMC chains


jameshay218/zikaProj documentation built on Jan. 9, 2020, 7:26 p.m.