print.ASDA: Print method for ASDA object

View source: R/ASDA.R

print.ASDAR 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 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.

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)

gumeo/accSDA documentation built on Nov. 16, 2023, 11:47 p.m.