check_pdist {primarycensored} | R Documentation |
Check if a function is a valid cumulative distribution function (CDF)
Description
This function tests whether a given function behaves like a valid CDF by checking if it's monotonically increasing and bounded between 0 and 1.
Usage
check_pdist(pdist, D, ...)
Arguments
pdist |
Distribution function (CDF) |
D |
Maximum delay (truncation point). If finite, the distribution is truncated at D. If set to Inf, no truncation is applied. Defaults to Inf. |
... |
Additional arguments to be passed to pdist |
Value
NULL. The function will stop execution with an error message if pdist is not a valid CDF.
See Also
Distribution checking functions
check_dprimary()
,
check_truncation()
Examples
check_pdist(pnorm, D = 10)
[Package primarycensored version 1.0.0 Index]