postprocess_chain: more postprocessing of MCMC output

View source: R/mcmc_postprocessing.R

postprocess_chainR Documentation

more postprocessing of MCMC output

Description

more postprocessing of MCMC output

Usage

postprocess_chain(
  chain,
  parTab,
  data_df,
  bind_summary_to_chain_partial,
  calc_residuals,
  get_prediction_ci_df,
  filename,
  combined_flag
)

Arguments

chain

data frame containing MCMC chain

parTab

data frame of model parameters created by specify_parameters

bind_summary_to_chain_partial

closure created by postprocess_for_plotting used to calculate summary statistics and bind them to chain

calc_residuals

closure. NULL or function to calculate residuals

get_prediction_ci_df

closure. NULL or function to calculate credible intervals for model predictions

filename

character vector of length 1: name of .RData file outputted by MCMC

combined_flag

logical. INdicates whether this chain is combined from parallel chains that have converged

data

data frame of data used for fitting in MCMC


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.