post_pred_data_gen: ABC Posterior Predictive Check data generation

Description Usage Arguments Value

View source: R/abc_worm_estimation_functions.R

Description

Generate data from parameter posterior distributions and compare to observed

Usage

1
post_pred_data_gen(posteriors, fixed_pars, n_ppl, data_gen_fx)

Arguments

posteriors

Matrix of posteriors

fixed_pars

vector of parameters needed for data generation but not drawn from posterior distribution

n_ppl

number of people in community to generate data for

data_gen_fx

data generation function (e.g. gen_case1_data; see above)

Value

matrix with dim n_reps by number of summary statistics (3 for this analysis)


cmhoove14/SchistoDynAgg documentation built on Dec. 14, 2021, 2:12 p.m.