Skip to contents

Detects posterior type by file contents, not filenames. Monte Carlo samples (trait.mcmc) take precedence over distribution summaries (post.distns / prior.distns). Falls back to legacy outdir + DB lookup when posterior.file is NA, with a deprecation warning.

Usage

load.posteriors(
  posterior.file,
  outdir = NULL,
  posteriorid = NULL,
  con = NULL,
  hostname = NULL
)

Arguments

posterior.file

path to a posterior file or directory, or NA.

outdir

Deprecated. Legacy PFT output directory used only when posterior.file is NA. Will be removed in a future version; pass an explicit posterior.file instead.

posteriorid

Deprecated. Posterior ID for DB lookup, used only in the legacy fallback path.

con

Deprecated. Database connection, used only in the legacy fallback path.

hostname

Deprecated. Hostname for DB file lookup, used only in the legacy fallback path.

Value

list with prior.distns, trait.mcmc, is.joint. is.joint is TRUE when MCMC samples represent a joint posterior (e.g. from PDA) and parameter correlations should be preserved.

Author

Siddhey Patil