dot-normalise_cdf: Normalise a primary event censored CDF

.normalise_cdfR Documentation

Normalise a primary event censored CDF

Description

Internal function to normalise a primary event censored CDF when truncation is applied. The CDF is normalised using (F(q) - F(L)) / (F(D) - F(L)) and values outside [L, D] are clamped to 0 or 1.

Usage

.normalise_cdf(result, q, L, D, pcens_obj, pwindow)

Arguments

result

Numeric vector of CDF values to normalise.

q

Numeric vector of quantiles at which CDF was evaluated.

L

Numeric lower truncation point (may be negative or -Inf)

D

Numeric upper truncation point

pcens_obj

A primarycensored object as created by new_pcens().

pwindow

Secondary event window

Value

Normalised CDF values as a numeric vector


primarycensored documentation built on June 15, 2026, 5:06 p.m.