| .prepare_linelist_data | R Documentation |
Converts date-based or numeric delay data into an aggregated format suitable for the primarycensored Stan model. Handles date-to-numeric conversion, computation of derived columns, an obs-time-to-Inf heuristic, and aggregation by unique delay/censoring combinations.
.prepare_linelist_data(data, obs_time_threshold = 2, verbose = FALSE)
data |
A data frame with date columns ( |
obs_time_threshold |
Numeric multiplier for the
obs-time-to-Inf heuristic. Observations where
|
verbose |
Logical, print progress messages? |
A data frame with columns: delay_lwr, delay_upr,
pwindow, relative_obs_time, n.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.