runSPLSDA: MLmodels diablo function

View source: R/mod_MLmodels_fct_diablo.R

runSPLSDAR Documentation

MLmodels diablo function

Description

A model and selection features function from mixOmics.

Usage

runSPLSDA(dataTrain)

Arguments

dataTrain

Data train set to build classification models. Returned by splitDatatoTrainTest().

Value

Returns sPLS-DA model, performances, features selected.

Examples

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.


Fjeanneret/multiSight documentation built on April 6, 2022, 7:59 a.m.