'Splsda with 2 y variables

Can you do a splsda with 2 y variables ?

When I run it with y as a dataframe I get an error.

pl <- splsda(endtestrel, Y, ncomp=5, scale=T) #scale = T: centering + scaling

with Y being a dataframe with 2 columns

Y <- cbind(temp_all$cultivar,temp_all$Exp)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source