I am working on the interaction between different gut microbiota species and different blood parameters.
I am currently facing an issue while running the perf() function in the mixOmics package. The error message I receive is “Error in X.test %*% a.cv: non-conformable arguments”.
I have proofread my dataset and tried a few troubleshooting steps, but the error persists. I would greatly appreciate any insights or suggestions on how to resolve this issue. Here are the steps I have taken so far:
a. Checked the dataset: I thoroughly reviewed my dataset for any inconsistencies or missing values.
The QA process is as follow:
 41 2027
 41 51
b. Removed near-zero variance predictors: To address any potential collinearity issues, I used the uniqueCut parameter with values of 10, 15, and 20 to remove near-zero variance predictors.
However, the error message continues to appear despite removing the near-zero variance predictors… Hence, I am seeking guidance on possible ways to check my data or any other suggestions to troubleshoot this issue. Your expertise and input would be highly appreciated.
Here is the command I am using:
spls_mod1 ← spls(X = X, Y = Y, ncomp =2, mode = ‘regression’)
perf_spls_mod1 = perf(spls_mod1, validation = “Mfold”, folds = 5, criterion = “all”,
Error in X.test %*% a.cv : non-conformable arguments