powered by
Predict Y for new data by projecting the data onto the latent space defined by an NPLS model.
npred(model, newX)
Ypred: vector of the predicted value(s) of Y for the new data
NPLS model
New data organized in a matrix of (Inew x J x K) with Inew new subjects
Y = as.numeric(as.factor(Cornejo2025$Tongue$mode1$GenderID)) Ycnt = Y - mean(Y) model = triPLS1(Cornejo2025$Tongue$data, Ycnt, numComponents=1) npred(model, Cornejo2025$Tongue$data[1,,])
Run the code above in your browser using DataLab