
Predict Y for new data by projecting the data onto the latent space defined by an NPLS model.
Source:R/npred.R
npred.Rd
Predict Y for new data by projecting the data onto the latent space defined by an NPLS model.
Examples
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,,])
#> [,1]
#> [1,] -0.00637789