nonparametric_pmf_data: Build PMF data for the nonparametric branch of...

View source: R/dist_spec.R

nonparametric_pmf_dataR Documentation

Build PMF data for the nonparametric branch of plot.dist_spec

Description

For a fixed nonparametric delay returns a single row per bin (the stored PMF). For a Dirichlet-backed estimated delay, draws samples PMFs from the alpha vector via rdirichlet() and returns one row per sample-bin pair so the calling plot can render an uncertainty band.

Usage

nonparametric_pmf_data(x, i, samples)

Arguments

x

The ⁠<dist_spec>⁠ being plotted.

i

Index of the nonparametric component within x.

samples

Number of PMFs to draw when alpha is present.

Value

A data.table with columns sample, x, p, distribution.


EpiNow2 documentation built on June 17, 2026, 1:07 a.m.