View source: R/mod_MLmodels_fct_diablo.R
runSPLSDA | R Documentation |
A model and selection features function from mixOmics.
runSPLSDA(dataTrain)
dataTrain |
Data train set to build classification models. Returned by splitDatatoTrainTest(). |
Returns sPLS-DA model, performances, features selected.
data("omic2", package = "multiSight") splitData <- splitDatatoTrainTest(omic2, 0.8) data.train <- splitData$data.train data.test <- splitData$data.test #diabloRes <- runSPLSDA(data.train) data("diabloRes", package = "multiSight") diabloModels <- diabloRes$model #sPLS-DA model using all omics. diabloFeats <- diabloRes$biosignature #selected features for each omic.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.