Description Usage Arguments Value Examples
View source: R/lilikoi.prognosis.R
Fits a Cox proportional hazards regression model or a Cox neural network model to predict survival results.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
event |
survival event |
time |
survival time |
exprdata |
dataset for penalization, with id in the rownames and pathway or metabolites names in the column names. |
percent |
train-test separation percentage |
alpha |
denote which penalization method to use. |
nfold |
fold number for cross validation |
method |
determine the prognosis index, "quantile", "quantile" or "ratio". |
cvlambda |
determine the lambda for prediction, "lambda.min" or "lambda.1se". |
python.path |
saved path for python3 |
path |
saved path for the inst file in lilikoi2 |
coxnnet |
if TRUE, coxnnet will be used. |
coxnnet_method |
the algorithm for gradient descent. Includes standard gradient descent ("gradient"), Nesterov accelerated gradient "nesterov" and momentum gradient descent ("momentum"). |
A list of components:
c_index |
C-index of the Cox-PH model |
difftest |
Test results of the survival curve difference test |
survp |
Kaplan Meier plot |
1 2 3 4 5 6 | inst.path = path.package('lilikoi2', quiet = FALSE) # path = "lilikoi/inst/", use R to run
inst.path = file.path(inst.path, 'inst')
python.path = "/Library/Frameworks/Python.framework/Versions/3.8/bin/python3"
lilikoi.prognosis(event, time, exprdata, percent=NULL, alpha=0, nfold=5, method="median",
cvlambda=NULL,python.path=NULL, path=inst.path, python.path=python.path,
coxnnet=FALSE,coxnnet_method="gradient")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.