Description Usage Arguments Details Value Examples
View source: R/CVrankSurv_fct.R
Main input function for SurvRank.
1 2 3 | CVrankSurv_fct(data, t.times, cv.out, cv.in, fs.method = "lasso.rank",
nr.var = 10, sd1 = 0.95, ncl = 1, weig.t = T, n1 = 0.1,
c.time = 10, ...)
|
data |
input of data as a list in the format: list.name$x data.frame of covariates. list.name$y response as a survival object, derived from |
t.times |
number of times the cross-validation should be repeated |
cv.out |
number of folds in outer cross validation loop (for estimation of the predictive accuracy) |
cv.in |
number of folds in inner cross validation loop (for model selection on the training set) |
fs.method |
Defaults to "lasso.rank". Ranking method to be applied. One of c("lasso.rank","conc.rank","rf.rank","boost.rank","cox.rank","rpart.rank","randcox.rank","wang.rank") |
nr.var |
Number of variables up to which stepwise selection should be carried out. Has to be smaller than n number of observations. |
sd1 |
factor to which sparser solutions should be chosen. Not maximum Survival AUC in inner loop is used in stepwise selection, instead |
ncl |
Defaults to 1. Number of clusters for parallel execution. |
weig.t |
Defaults to TRUE. Should a weighting of features be performed. |
n1 |
used in weighting function if weig.t=T. Find details in |
c.time |
as defined in package |
... |
arguments that can be passed to underlying functions, not used now |
details to follow
Output of the CVrankSurv_fct
, basically a list containing the following elements
|
ranking method |
|
full ranking of all model estimations |
|
averaged inner AUCs of stepwise selection |
|
predictions of testset |
|
only used features according to stepwise selection |
|
only used features according to stepwise selection with factor |
|
matrix of dimension |
|
matrix of dimension |
|
matrix of ranks per feature. If not selected, it is set to number of features. |
|
0/1 matrix for features selected |
|
0/1 matrix for features selected with factor |
|
unweighted toplist with factor |
|
unweighted toplist |
|
weighted toplist with applied weighting function |
|
toplist of ranked features according to ranks |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Simulating a survival data set
N=100; p=10; n=4
x=data.frame(matrix(rnorm(N*p),nrow=N,p))
beta=rnorm(n)
mx=matrix(rnorm(N*n),N,n)
fx=mx[,seq(n)]%*%beta/3
hx=exp(fx)
ty=rexp(N,hx)
tcens=1-rbinom(n=N,prob=.3,size=1)
y=Surv(ty,tcens)
data=list()
data$x<-x; data$y<-y
## Ranking the features according to their significance in the univariate cox models
out.cox<-CVrankSurv_fct(data,2,3,3,fs.method="cox.rank")
## Ranking the features according to the LASSO algorithm
## Not run:
out.lasso<-CVrankSurv_fct(data,2,5,5,fs.method="lasso.rank")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.