Slightly modified such that start/stop formulas are accepted and processed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | pec2(
object,
formula,
data,
traindata,
times,
cause,
start,
maxtime,
exact = TRUE,
exactness = 100,
fillChar = NA,
cens.model = "cox",
ipcw.refit = FALSE,
ipcw.args = NULL,
splitMethod = "none",
B,
M,
reference = TRUE,
model.args = NULL,
model.parms = NULL,
keep.index = FALSE,
keep.matrix = FALSE,
keep.models = FALSE,
keep.residuals = FALSE,
keep.pvalues = FALSE,
noinf.permute = FALSE,
multiSplitTest = FALSE,
testIBS,
testTimes,
confInt = FALSE,
confLevel = 0.95,
verbose = TRUE,
savePath = NULL,
slaveseed = NULL,
na.action = na.fail,
...
)
|
object |
A named list of prediction models, where allowed entries are
(1) R-objects for which a predictSurvProb method exists (see
details), (2) a |
formula |
A survival formula as obtained either
with |
data |
A data frame in which to validate the prediction models and to
fit the censoring model. If |
traindata |
A data frame in which the models are trained. This argument is used only in the absence of crossvalidation, in which case it is passed to the predictHandler function predictSurvProb |
times |
A vector of time points. At each time point the prediction
error curves are estimated. If |
cause |
For competing risks, the event of interest. Defaults to the
first state of the response, which is obtained by evaluating the left hand
side of |
start |
Minimal time for estimating the prediction error curves. If
missing and |
maxtime |
Maximal time for estimating the prediction error curves. If missing the largest value of the response variable is used. |
exact |
Logical. If |
exactness |
An integer that determines how many equidistant gridpoints
are used between |
fillChar |
Symbol used to fill-in places where the values of the
prediction error curves are not available. The default is |
cens.model |
Method for estimating inverse probability of censoring weigths:
|
ipcw.refit |
If |
ipcw.args |
List of arguments passed to function specified by argument |
splitMethod |
SplitMethod for estimating the prediction error curves.
The random splitting is repeated
|
B |
Number of bootstrap samples. The default depends on argument
|
M |
The size of the bootstrap samples for resampling without replacement. Ignored for resampling with replacement. |
reference |
Logical. If |
model.args |
List of extra arguments that can be passed to the
|
model.parms |
Experimental. List of with exactly one entry for each
entry in |
keep.index |
Logical. If |
keep.matrix |
Logical. If |
keep.models |
Logical. If |
keep.residuals |
Logical. If |
keep.pvalues |
For |
noinf.permute |
If |
multiSplitTest |
If |
testIBS |
A range of time points for testing differences between models in the integrated Brier scores. |
testTimes |
A vector of time points for testing differences between models in the time-point specific Brier scores. |
confInt |
Experimental. |
confLevel |
Experimental. |
verbose |
if |
savePath |
Place in your file system (i.e., a directory on your
computer) where training models fitted during cross-validation are saved. If
|
slaveseed |
Vector of seeds, as long as |
na.action |
Passed immediately to model.frame. Defaults to na.fail. If set otherwise most prediction models will not work. |
... |
Not used. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.