controlpars {npcurePK} | R Documentation |
Control Values for the Bootstrap
Description
This function returns a list of values for the control parameters of the functions that will be used for the bootstrap bandwidth selector.
Usage
controlpars(b = 100L, hbound = c(0.1, 3), hl = 30L, hgrid_save = FALSE,
nnfrac = 0.25, fpilot = NULL, qt = 0.9, ncores = 1L,
seed = NULL, ...)
Arguments
b |
An integer giving the number of bootstrap resamples, |
hbound |
A numeric vector of length 2 specifying the minimum
(default, |
hl |
A numeric value giving the length of the initial grid of
bandwidths. The default is |
hgrid_save |
A logical value specifying if the grids of bandwidths
must be saved as a component of the list returned by the
|
nnfrac |
A numeric value giving the fraction of the sample size that
determines the order of the nearest neighbor used when choosing the
pilot bandwidth. The default is |
fpilot |
A function name or |
qt |
In bandwidth selection for the product-limit estimator, a numeric
value specifying the order of a quantile of the observed times. It
determines the right boundary of the integration interval in the
computation of the ISE (the lower limit is |
ncores |
The number of cores used in parallel computations. |
seed |
An optional integer passed to |
... |
Arguments of |
Details
The output of controlpars
is a list of control parameters
required by the functions which use the bootstrap. This is mainly the case
of the prodlimcurePKhboot
function, which compute the bootstrap
bandwidth selectors of the estimators of the survival, latency and the
probability of cure. Since these functions are indirectly called by
prodlimcurePKhboot
function when their h
argument is missing,
the output of controlpars
is also the expected (and default) way of
passing to them the parameters for bandwidth selection.