View source: R/pcens_quantile.R
pcens_quantile | R Documentation |
This function inverts the primary event censored CDF to compute quantiles.
It uses numerical optimisation via optim to find the value q such that
pcens_cdf()
is close to the specified probability. Currently, only the
default numerical inversion method is implemented. Future analytical
solutions may be added.
pcens_quantile(object, p, pwindow, D = Inf, use_numeric = FALSE, ...)
object |
A |
p |
A vector of probabilities at which to compute the quantiles. |
pwindow |
Primary event window |
D |
Maximum delay (truncation point). If finite, the distribution is truncated at D. If set to Inf, no truncation is applied. Defaults to Inf. |
use_numeric |
Logical; if TRUE forces the use of numeric inversion even if an analytical solution is available (not yet implemented). |
... |
Additional arguments to be passed to pdist |
Vector of primary event censored quantiles.
Low level primary event censored distribution objects and methods
new_pcens()
,
pcens_cdf()
,
pcens_cdf.default()
,
pcens_cdf.pcens_pgamma_dunif()
,
pcens_cdf.pcens_plnorm_dunif()
,
pcens_cdf.pcens_pweibull_dunif()
,
pcens_quantile.default()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.