Skip to content

question about plsr() results

2 messages · Vytautas Rakeviius, Bjørn-Helge Mevik

#
Vytautas Rakeviius <vytautas1987 at yahoo.com> writes:
The predict() function does the prediction for you.  If you want to
construct the prediction _equation_, you can extract the coefficients
from the model with

coef(yourmodel, ncomp = thenumberofcomponents, intercept = TRUE)

See ?coef.mvr for details.
The pls package is designed to work as much as possible like the lm()
function and its methods, helpers.  So read any introduction to linear
models in R, and you will come a long way.

There is also a paper in JSS about the pls package: http://www.jstatsoft.org/v18/i02/