0
votes

test <- PLS_glm(y,X,p,modele="pls-glm-logistic", alpha.pvals.expli = 0.05, sparse=TRUE, sparseStop=TRUE)

****____________________________**

Family: binomial

Link function: logit

_component_ 1 __

_component_ 2 __

_component_ 3 __

No more significant predictors (<0.05) found

Warning only 3 components were thus extracted

_Predicting X without NA neither in X nor in Y_

***____________________________****

*how do I suppress the output that follows PLS_glm function call?*

1

1 Answers

1
votes

PLS_glm uses cat function internally. You can redirect the cat output using something like :

capture.output(test <- PLS_glm(y,X,p,modele="pls-glm-logistic", 
                               alpha.pvals.expli = 0.05,     
                               sparse=TRUE, sparseStop=TRUE),
               file='NULL')

This will redirect the cat messages to a new file named 'NULL'.

PS: as a side note, according to the help it better Use plsRglm instead.