predict.pls {pdmclass} | R Documentation |
These are functions that can be used to classify new samples (a test set) based on an existing classifier created using a training set.
## S3 method for class 'pls': predict(object, x, ...) ## S3 method for class 'svd': predict(object, x, ...)
object |
An object created by a call to pdmClass . |
x |
A matrix of new observations in which rows are samples and columns are genes. If not supplied, prediction will be performed on the original training set. |
... |
Other variables passed to predict. |
A vector of predicted class assignments.
Debashis Ghosh
http://www.sph.umich.edu/~ghoshd/COMPBIO/POPTSCORE
library(fibroEset) data(fibroEset) y <- as.numeric(pData(fibroEset)[,2]) x <- t(exprs(fibroEset)) genes <- featureNames(fibroEset) tmp <- pdmClass(y ~ x) predict(tmp)