Description Usage Arguments Value
A function for CV in Cox AIM with interaction.
1 2 | cv.cox.interaction(x, trt, y, status, K.cv = 5, num.replicate = 1, nsteps,
mincut = 0.1, backfit = F, maxnumcut = 1, dirp = 0)
|
x |
the predictor matrix. |
trt |
the treatment indicator vector. |
y |
the vector of the time to event response variable. |
status |
status indicator: 1=failure 0=alive |
K.cv |
number of folds for CV. |
num.replicate |
number of CV iterations. |
nsteps |
the maximum number of binary rules to be included in the index. |
mincut |
the minimum cutting proportion for the binary rule at either end. It typically is between 0 and 0.2. It is the parameter in the functions of AIM package. |
backfit |
a logical argument indicating whether the existing cutpoints are adjusted after including new binary rule. |
maxnumcut |
the maximum number of binary splits per predictor. |
dirp |
a vector for pre-specified direction of the binary split for each of the predictors. 0 represents "no pre-given direction"; 1 represents "(x>cut)"; -1 represents "(x<cut)". Alternatively, "dirp=0" represents that there is no pre-given direction for any of the predictor. |
returns optimal number of binary rules based on CV along with CV partial likelihood score test statistics, pre-validated partial likelihood score test statistics and prevalidated fits for individual observation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.