Hi,
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:
print(dim(X))
[1] 41 2027
print(dim(Y))
[1] 41 51
print(any(is.na(X)))
[1] FALSE
print(any(is.na(Y)))
[1] FALSE
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”,
nrepeat=10)
Error in X.test %*% a.cv : non-conformable arguments
Thanks