Skip to contents

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 base to tidybayes::median_qi()

Value

A data.table of posterior draws or quantiles, merged and processed.