sample_from_prior: samples from joint prior distribution

View source: R/mcmc_postprocessing.R

sample_from_priorR Documentation

samples from joint prior distribution

Description

samples from joint prior distribution

Usage

sample_from_prior(
  PRIOR_FUNC,
  parTab,
  startTab,
  data_df,
  filenames,
  run_parallel
)

Arguments

PRIOR_FUNC

NULL for uniform prior, otherwise closure specifying prior

startTab

data frame of smae format as parTab, storing starting parameter values

filenames

vector of filenames in which to temporarily store samples

run_parallel

logical. Whether to run calculations in parallel

Value

data frame of samples from the prior distribution


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