Description Usage Arguments Value Examples
This function is a wrapper function to the glmnet::cv.glmnet()
function to
conduct LASSO / ElasticNet regularized regression. The regression optimizes
the C statistic, forces the adjustment variables, and runs the algorithm
using parallel processing.
1 | elastic.net(data, terms, adjust, time, outc, .alpha = 1)
|
data |
The tibble containing the merged Protein and Study Data. |
terms |
The terms to consider in the LASSO Regression. |
adjust |
The vector of Adjustment variables to force |
time |
A character vector of the Survival time to event outcome variable. |
outc |
A character vector of the Survival event indicator outcome variable. |
.alpha |
The optional alpha parameter to change LASSO to Elastic Net. |
The returned cv.glmnet LASSO Elastic Net Model.
The coefficients of the Non-zero covariates retained.
The Final retained Proteins from this model.
1 2 3 4 5 6 7 8 | ## Not run:
fifth.lasso <- elastic.net(fifth.visit,
bonferroni$kept,
adjust, time, outc)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.