Learn R Programming

EpiNow2 (version 1.8.0)

posterior_to_normal: Create a Normal distribution from posterior samples

Description

Helper function to create a Normal distribution from a row of posterior summary statistics, with consistent rounding.

Usage

posterior_to_normal(posterior, idx)

Value

A Normal distribution object

Arguments

posterior

Data frame with mean and sd columns from Stan output

idx

Integer index into the posterior data frame