print.ASDA | R Documentation |
Prints a summary of the output from the ASDA
function. The
output summarizes the discriminant analysis in human readable format.
## S3 method for class 'ASDA' print(x, digits = max(3, getOption("digits") - 3), numshow = 5, ...)
x |
Object of class ASDA. This object is returned from the function |
digits |
Number of digits to show in printed numbers. |
numshow |
Number of best ranked variables w.r.t. to their absolute coefficients. |
... |
arguments passed to or from other methods. |
An invisible copy of x
.
ASDA
, predict.ASDA
and SDAD
# Prepare training and test set train <- c(1:40,51:90,101:140) Xtrain <- iris[train,1:4] nX <- normalize(Xtrain) Xtrain <- nX$Xc Ytrain <- iris[train,5] Xtest <- iris[-train,1:4] Xtest <- normalizetest(Xtest,nX) Ytest <- iris[-train,5] # Run the algorithm resDef <- ASDA(Xtrain,Ytrain) # Print print(resDef)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.