Elastic net analysis

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:

  1. Which R function/package is used internally by ElasticNet.Anal()?

  2. How are the 10 cross-validation folds generated? Are they stratified by diagnostic group?

  3. 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?

  4. Is feature selection performed independently within each cross-validation fold, or are the 25 features selected before cross-validation?

  5. How exactly are misclassification error and balanced accuracy calculated?

  6. Are the reported coefficients estimated using the selected lambda (lambda.1se) from the complete dataset?

  7. Is the source code of ElasticNet.Anal() available for inspection, and which MetaboAnalystR version was used?

Thank you for your assistance.