predict.lspls {lspls} | R Documentation |
Predict Method for LS-PLS Models
Description
Predict method for "lspls"
objects. It predicts response
values or scores from new data.
Usage
## S3 method for class 'lspls'
predict(object, newdata, type = c("response", "scores"),
na.action = na.pass, ...)
Arguments
object |
object of class |
newdata |
data frame. The new data. |
type |
character. Wether to predict responses or scores. |
na.action |
function determining what should be done with missing
values in |
... |
further arguments. Currently not used. |
Value
If type = "response"
, a matrix with predicted response values
is returned. If type = "scores"
, a matrix with predicted
score values is returned.
Author(s)
Bjørn-Helge Mevik
See Also
Examples
##FIXME
[Package lspls version 0.2-2 Index]