Process posterior samples from a Stan fit object (raw draws).
sample_processing_functions.Rd
Extracts raw posterior samples from a Stan fit object and post-processes
them, including merging with a fact table and standardizing the parameter
names. If calling process_quantiles()
the 50% and 95% intervals are
returned in {tidybayes}
format.
Usage
process_samples(fit, geo_value, model, disease)
process_quantiles(fit, geo_value, model, disease, quantiles)
Arguments
- fit
An EpiNow2 fit object with posterior estimates.
- disease, geo_value, model
Metadata for downstream processing.
- quantiles
A vector of quantiles to pass to
tidybayes::median_qi()
See also
Other write_output:
write_model_outputs()
,
write_output_dir_structure()