Description Usage Arguments Details Value Examples
View source: R/evaluateGlmnet.R
function to do prediction and evaluate based on the results of glmnet
1 2 | evaluateGlmnet(fit, alpha, testTable, respCol_index, whichRep_int,
whichCVfold_int)
|
fit |
fit result of glmnet |
alpha |
specific alpha value use for this glmnet fit object |
testTable |
test data frame that each column represents a CpG probe while each row represents a sample, each cell is a M value, first column is phenodata |
respCol_index |
col number of response variable |
whichRep_int |
number of repetation |
whichCVfold_int |
number of cross validation |
evaluate performance of results return by function glmnetWrapper
A data frame contains parameters for evaluate prediction performance
NumOfRep
: Number of repetation
NumOfCv
: Number of cross validation
alphaValue
: alpha value of glmnet
lambda.min
: lambda min value of glmnet
auc_results
: auc value of prediction
Sensitivity
: Sensitivity value of prediction
Specificity
: Specificity value of prediction
...
: more index
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
data(ExampleMvalue_test)
data(glmnet_Fit_ls)
alphaValue = seq(0, 1, by = 0.1)
test <- evaluateGlmnet(
fit = glmnet_Fit_ls[[1]],
alpha = alphaValue[1],
testTable = ExampleMvalue_test,
respCol_index = 1,
whichRep_int = 1,
whichCVfold_int = 1
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.