Learn R Programming

EpiNow2 (version 1.8.0)

extract_delays: Extract samples from all delay parameters

Description

Extracts samples from all delay parameters using the delay ID lookup system. Similar to extract_parameters(), this extracts all delay distribution parameters and uses the *_id variables (e.g., delay_id, trunc_id) to assign meaningful names.

Usage

extract_delays(samples, args)

Value

A <data.table> with columns: variable, sample, value, or NULL if delay parameters don't exist in the samples

Arguments

samples

Extracted stan model (using rstan::extract())

args

Stan data list with delay_id_* and related lookup variables.