check_dprimary | R Documentation |
This function tests whether a given function behaves like a valid PDF by checking if it integrates to approximately 1 over the specified range and if it takes the arguments min and max.
check_dprimary(dprimary, pwindow, dprimary_args = list(), tolerance = 0.001)
dprimary |
Function to generate the probability density function
(PDF) of primary event times. This function should take a value |
pwindow |
Primary event window |
dprimary_args |
List of additional arguments to be passed to
dprimary. For example, when using |
tolerance |
The tolerance for the integral to be considered close to 1 |
NULL. The function will stop execution with an error message if dprimary is not a valid PDF.
Distribution checking functions
check_pdist()
,
check_truncation()
check_dprimary(dunif, pwindow = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.