50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

accSDA (version 1.1.3)

print.ASDA: 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 ASDA
print(x, digits = max(3, getOption("digits") - 3), numshow = 5, ...)

Value

An invisible copy of x.

Arguments

x

Object of class ASDA. This object is returned from the function ASDA.

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.

See Also

ASDA, predict.ASDA and SDAD

Examples

Run this code
    # 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)

Run the code above in your browser using DataLab