How to control variables


Hello! I’m currently using splsda from mixOmics for my analysis of clinical data. My mentor wants me to control some variables such as Sex and BMI when building the models. Does anyone know how to control variables using plsda and splsda? Thanks so much for the help!