I would like to use the function ‘background.predict’ to calculate prediction areas after a MINT splsda analysis.
Is it possible?
I’ve tried with both MINT plsda and MINT splsda but obtained the following error messages:
Error in background.predict(object = mint.plsda.res) :
‘background.predict’ can only be calculated for ‘plsda’
and ‘splsda’ objects
background=background.predict(object=mint.splsda.res, comp.predicted = 2, dist='max.dist')
Error in matrix(attr(Y, “scaled:center”), nrow = nrow(t.pred[]), ncol = q, :
‘data’ must be of a vector type, was ‘NULL’
Can you help me with that?
Thanks a lot in advance,