Description Usage Arguments Details Value Author(s) See Also Examples
Specify which fold each observation is in to obtain foldid
.
coxsplit
randomly split data. coxsplity
splits data by the ‘status’ of y
, and within each status, data is randomly split. coxsplitw
splits data in the order of w
.
1 2 3 4 5 |
y |
response variable. |
w |
input vector, same length as |
nfolds |
number of folds. |
By default, coxsplit
is incorporated in Coxnet
and coxsplitw
in loCoxnet
. To use other data splitting method, generate foldid
at the outset and supply it as an augment in Coxnet
and loCoxnet
.
a vector of values between 1 and nfolds
specifying which fold each observation is in.
Xiang Li, Donglin Zeng and Yuanjia Wang
Maintainer: Xiang Li <xl2473@columbia.edu>
Coxnet
, loCoxnet
, print.Coxnet
1 2 3 4 5 6 7 |
Loading required package: Matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.