new_pcens {primarycensored} | R Documentation |
S3 class for primary event censored distribution computation
Description
S3 class for primary event censored distribution computation
Usage
new_pcens(
pdist,
dprimary,
dprimary_args,
pdist_name = NULL,
dprimary_name = NULL,
...
)
Arguments
pdist |
Distribution function (CDF) |
dprimary |
Function to generate the probability density function
(PDF) of primary event times. This function should take a value |
dprimary_args |
List of additional arguments to be passed to
dprimary. For example, when using |
pdist_name |
A string specifying the name of the delay distribution
function. If NULL, the function name is extracted using
|
dprimary_name |
A string specifying the name of the primary event
distribution function. If NULL, the function name is extracted using
|
... |
Additional arguments to be passed to pdist |
Value
An object of class pcens_{pdist_name}_{dprimary_name}
. This
contains the primary event distribution, the delay distribution, the
delay distribution arguments, and any additional arguments. It can be
used with the pcens_cdf()
function to compute the primary event censored
cdf.
See Also
Low level primary event censored distribution objects and methods
pcens_cdf()
,
pcens_cdf.default()
,
pcens_cdf.pcens_pgamma_dunif()
,
pcens_cdf.pcens_plnorm_dunif()