Description Usage Arguments Value
View source: R/CosmonetTraining.R
This function fits penalized Cox regression methods in order to incorporate gene regulatory relationships and to select signature genes using the training set T
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
k |
times to loop through cross validation. |
x |
input training matrix |
y |
response variable, |
screenVars |
screened variables obtained from BMD- or DAD-, or BMD+DAD-screening or by the user. A list or a character string can be used. |
family |
Cox proportional hazards regression model. |
penalty |
penalty type. Can choose |
Omega |
adjacency matrix with zero diagonal and non-negative off-diagonal used to calculate Laplacian matrix. |
alpha |
ratio between |
lambda |
a user supplied decreasing sequence. If |
nlambda |
number of lambda values. Default is 50. |
nfolds |
number of folds performed for tuning optimal parameters over runs. Default is |
foldid |
an optional vector of values between 1 and nfolds specifying which fold each observation is in. |
selOptLambda |
a character string for selecting the lambda parameter. Options are |
optCutpoint |
a character string for choosing the optimal cutpoint on training set |
The following objects are returned:
beta |
a sparse Matrix of coefficients, stored in class |
opt.lambdas |
lambda values based on minimum |
df |
data frame composed by samples, relative prognostic indices, times, status and group risk for each quantile q_{gamma}, with γ=0.20, ..., 0.80. |
summary |
summary table on number of patients at risk, cutoff and p.value for each quantile. |
opt.cutoff |
optimal cutoff selected on the training. |
p.value |
resulting from the log-rank test (the significance level is |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.