Learn R Programming

EpiNow2 (version 1.8.0)

reconstruct_nonparametric: Reconstruct a nonparametric delay distribution

Description

Helper function to reconstruct a single nonparametric delay component from Stan data. Nonparametric delays are stored as probability mass functions.

Usage

reconstruct_nonparametric(stan_data, np_id)

Value

A dist_spec object representing the nonparametric delay

Arguments

stan_data

List of Stan data containing delay specification

np_id

Integer index into the nonparametric delay PMF arrays