mcmc.CalcABC: Function to calculate ABC and OFL from an MCMC dataframe

View source: R/mcmc.CalcABC.R

mcmc.CalcABCR Documentation

Function to calculate ABC and OFL from an MCMC dataframe

Description

This function calculates ABC and OFL from TCSAM02 MCMC output.

Usage

mcmc.CalcABC(
  mcmc = NULL,
  dfr = NULL,
  pstar = 0.49,
  buffer = 0.2,
  doPlot = TRUE,
  xlims = NULL,
  verbose = FALSE
)

Arguments

mcmc
  • mcmc object

dfr
  • dataframe with OFL as column (and possibly 'case')

pstar
  • pstar value for ABC calculation

buffer
  • buffer for ABC as fraction (i.e., 0.20 = 20 \

doPlot
  • flag (T/F) to create plot

xlims
  • range for x-axis in plot

verbose

flag to print diagnostic info

title
  • title for plot

Details

uses plotABC to produce ABC plots for each case

Value

list with elements

  • dfrABCs - dataframe with median results, ABC.pstar and ABC.buffer for each case

  • dfrOFLs - dataframe with empirical cdf of OFL for each case

  • plot - ggplot2 object


wStockhausen/rTCSAM02 documentation built on April 16, 2024, 6:25 a.m.