print.ASDA {accSDA} | R Documentation |
Print method for ASDA object
Description
Prints a summary of the output from the ASDA
function. The
output summarizes the discriminant analysis in human readable format.
Usage
## S3 method for class 'ASDA'
print(x, digits = max(3, getOption("digits") - 3), numshow = 5, ...)
Arguments
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. |
Value
An invisible copy of x
.
See Also
ASDA
, predict.ASDA
and SDAD
Examples
# 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)
[Package accSDA version 1.1.3 Index]