Learn R Programming

textir (version 1.5.2)

predict.pls: pls predict

Description

Predict function for Partial Least Squares

Usage

## S3 method for class 'pls':
predict( object, newdata, ... )

Arguments

object
An output object from the pls function.
newdata
An nrow(object$loadings)-column matrix of multinomial phrase/category counts for new documents/observations. Can be either a simple matrix or a simple_triplet_matrix.
...
Additional unused arguments.

Value

  • Output is an nrow(newcounts) by ncol(object$loadings) matrix of pls directions for each new observation.

Details

This function returns the pls projection $X\Phi$ for new covariates.

References

Taddy (2011), Inverse Regression for Analysis of Sentiment in Text. http://arxiv.org/abs/1012.2098

See Also

pls, congress109