Description Usage Arguments Examples
View source: R/pec-eha-aftreg.R
Wrapper functions that calculates CV prediction error
1 2 3 4 5 6 7 8 9 10 11 12 13  | 
data | 
 The data set used for cross-validated brier-score calculation.  | 
num_vars | 
 A character vector of covariates on numeric scale.  | 
cat_vars | 
 A character vector of categorical covariates  | 
ipcw.form | 
 The specification of the model that calculates the
inverse probability censoring weights (ipcw). Will be passed to
  | 
times | 
 For   | 
lhs | 
 The left-hand side of the formula to be produced.  | 
seed | 
 If specified this seed will be used (to replicate CV folds for example).  | 
k | 
 Number of folds (an integer).  | 
fname | 
 A string of the special function in which   | 
reference | 
 Logical. If   | 
... | 
 Further arguments passed to   | 
1 2 3 4 5 6 7 8 9  | library(eha)
pec <- aft_pec_wrapper(
 data = mort,
 num_vars = "ses",
 ipcw.form = "Surv(time = enter, time2 = exit, event = event)~ses",
 times = seq(0, 17, by = 1),
 k = 5,
 lhs = "Surv(time = enter, time2 = exit, event = event)~",
 fname = "")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.