The sfsmisc Package - NexTag Supports Open Source Initiatives
The sfsmisc Package - NexTag Supports Open Source Initiatives
The sfsmisc Package - NexTag Supports Open Source Initiatives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
20 diagDA<br />
diagDA<br />
Diagonal Discriminant Analysis<br />
Description<br />
This function implements a simple Gaussian maximum likelihood discriminant rule, for diagonal<br />
class covariance matrices.<br />
Usage<br />
dDA(x, cll, pool = TRUE)<br />
## S3 method for class 'dDA':<br />
predict(object, newdata, pool = object$pool, ...)<br />
## S3 method for class 'dDA':<br />
print(x, ...)<br />
diagDA(ls, cll, ts, pool = TRUE)<br />
Arguments<br />
x,ls<br />
cll<br />
object<br />
ts, newdata<br />
pool<br />
learning set data matrix, with rows corresponding to cases (e.g., mRNA samples)<br />
and columns to predictor variables (e.g., genes).<br />
class labels for learning set, must be consecutive integers.<br />
object of class dDA.<br />
test set (prediction) data matrix, with rows corresponding to cases and columns<br />
to predictor variables.<br />
logical flag. If true (by default), the covariance matrices are assumed to be constant<br />
across classes and the discriminant rule is linear in the data. Otherwise<br />
(pool= FALSE), the covariance matrices may vary across classes and the discriminant<br />
rule is quadratic in the data.<br />
... further arguments passed to and from methods.<br />
Value<br />
dDA() returns an object of class dDA for which there are print and predict methods. <strong>The</strong><br />
latter returns the same as diagDA():<br />
diagDA() returns an integer vector of class predictions for the test set.<br />
Author(s)<br />
Sandrine Dudoit, 〈sandrine@stat.berkeley.edu〉 and<br />
Jane Fridlyand, 〈janef@stat.berkeley.edu〉 originally wrote stat.diag.da() in CRAN package<br />
sma which was modified for speedup by Martin Maechler 〈maechler@R-project.org〉 who also<br />
introduced dDA etc.