Dear MetaboAnalyst Support Team,
I performed an Elastic Net analysis directly through the MetaboAnalyst web interface and would appreciate clarification regarding its implementation.
The R command history generated by the platform contains the following command:
mSet <- ElasticNet.Anal(mSet, 0.5, 10, "Diagnosis", "1se")
The analysis included 34 samples (10 controls and 24 varicocele patients) and 200 protein features. The parameters and results were:
-
Alpha = 0.5
-
10-fold cross-validation
-
Lambda = 0.201 (1-SE rule)
-
25 selected features
-
Cross-validated misclassification error = 0.176 (SE = 0.048)
-
Balanced accuracy = 0.729
-
AUC = 0.888
For accurate reporting in a scientific manuscript, could you please clarify:
-
Which R function/package is used internally by
ElasticNet.Anal()? -
How are the 10 cross-validation folds generated? Are they stratified by diagnostic group?
-
Are the AUC and balanced accuracy calculated from out-of-fold predictions or from predictions generated by the final model fitted to the complete dataset?
-
Is feature selection performed independently within each cross-validation fold, or are the 25 features selected before cross-validation?
-
How exactly are misclassification error and balanced accuracy calculated?
-
Are the reported coefficients estimated using the selected lambda (lambda.1se) from the complete dataset?
-
Is the source code of
ElasticNet.Anal()available for inspection, and which MetaboAnalystR version was used?
Thank you for your assistance.