CensoredDistributions.jl
distributions
censoring
flagship
Tools for the censoring and truncation biases common in epidemiological delay data.
Delay data — the time between two events, such as infection and symptom onset — are usually recorded to the nearest day and observed through a limited window. Ignoring the resulting interval censoring and truncation biases delay estimates. CensoredDistributions.jl wraps any Distributions.jl distribution to handle primary event censoring, truncation, and secondary interval censoring, with analytical solutions where they exist and automatic differentiation throughout.
This is the ecosystem’s most developed package and a good place to start.
Install
using Pkg
Pkg.add("CensoredDistributions")using CensoredDistributions, Distributions
# a lognormal delay, primary-event and interval censored
d = double_interval_censored(LogNormal(1.5, 0.5); interval = 1.0)