Skip to contents

Computes the analytic primary event censored CDF for a hazard-parameterised piecewise-constant delay distribution. Converts hazards to a PMF via hazards_to_pmf() then dispatches back through pcens_cdf() using a freshly constructed step-distribution object. The same primary event distribution and arguments are preserved.

Usage

# S3 method for class 'pcens_pdiscretehazard'
pcens_cdf(object, q, pwindow, use_numeric = FALSE)

Arguments

object

A primarycensored object as created by new_pcens().

q

Vector of quantiles

pwindow

Primary event window

use_numeric

Logical, if TRUE forces use of numeric integration even for distributions with analytical solutions. This is primarily useful for testing purposes or for settings where the analytical solution breaks down.

Value

Vector of computed primary event censored CDFs