predict.lspls {lspls} | R Documentation |
Predict method for "lspls"
objects. It predicts response
values or scores from new data.
## S3 method for class 'lspls': predict(object, newdata, type = c("response", "scores"), na.action = na.pass, ...)
object |
object of class "lspls" . The fitted model to
predict with. |
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 newdata . The default is to predict NA . See
na.omit for alternatives. |
... |
further arguments. Currently not used. |
When type = "response"
, a matrix with predicted response values
is returned. When type = "scores"
, a matrix with predicted
score values is returned.
Bjørn-Helge Mevik
##FIXME