Primary Event Censored Distributions
Helper method for custom distributions
Check if a function is a valid bounded probability density function (P...
Check if a function is a valid cumulative distribution function (CDF)
Check if truncation time is appropriate relative to the maximum delay
Define a fitdistrplus compatible wrapper around dprimarycensored
Extract base function name
Extract function names or content from Stan code
Extract and Combine Distribution Names
Deprecation name helper
Normalise a primary event censored CDF
Define a fitdistrplus compatible wrapper around pprimarycensored
Compute the primary event censored PMF for delays
Exponential growth distribution functions
Fit a distribution to doubly censored data
S3 class for primary event censored distribution computation
Prepare data for primarycensored Stan model
Create a CmdStanModel with primarycensored Stan functions
Get distribution function cdf or pdf name
Load Stan functions as a string
Get distribution stan ID by name
Get Stan files containing specified functions
Get Stan function names from Stan files
Get the path to the Stan code
Default method for computing primary event censored CDF
Method for Gamma delay with uniform primary
Method for Log-Normal delay with uniform primary
Method for Weibull delay with uniform primary
Compute primary event censored CDF
Default method for computing primary event censored quantiles
Compute primary event censored quantiles
Compute the primary event censored CDF for delays
primarycensored: Primary Event Censored Distributions
Compute quantiles corresponding to target probabilities for primary ev...
Generate random samples from a primary event censored distribution
Provides functions for working with primary event censored distributions and 'Stan' implementations for use in Bayesian modeling. Primary event censored distributions are useful for modeling delayed reporting scenarios in epidemiology and other fields (Charniga et al. (2024) <doi:10.48550/arXiv.2405.08841>). It also provides support for arbitrary delay distributions, a range of common primary distributions, and allows for truncation and secondary event censoring to be accounted for (Park et al. (2024) <doi:10.1101/2024.01.12.24301247>). A subset of common distributions also have analytical solutions implemented, allowing for faster computation. In addition, it provides multiple methods for fitting primary event censored distributions to data via optional dependencies.
Useful links