Skip to contents

This function takes in a fitted wastewater model and some of the inputs which produced it and returns data which can be used to fit the model to the posterior predictive distribution of datasets.

Usage

make_pps_data(mcmc_fit, real_data, config, draw = NULL)

Arguments

mcmc_fit

CmdStanMCMC object

real_data

the stan data object which produced the mcmc_fit

config

the output of get_config_vals() which produced the mcmc_fit

draw

vector, which draws from the MCMC object do we want in the result? If NULL, uses all. This can be a very large data frame!

Value

a list, each of which is a list of formatted stan data