Skip to contents

This method serves as a fallback for combinations of delay and primary event distributions that don't have specific implementations. It uses the numeric integration method.

Usage

# Default S3 method
primary_censored_cdf(object, q, pwindow, use_numeric = FALSE)

Arguments

object

A primary_censored_dist object as created by new_primary_censored_dist().

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.

Details

This method implements the numerical integration approach for computing the primary event censored CDF. It uses the same mathematical formulation as described in the details section of pprimarycensoreddist(), but applies numerical integration instead of analytical solutions.

See also

pprimarycensoreddist() for the mathematical details of the primary event censored CDF computation.

Low level primary event censored distribution objects and methods new_primary_censored_dist(), primary_censored_cdf(), primary_censored_cdf.pcens_pgamma_dunif(), primary_censored_cdf.pcens_plnorm_dunif()