Learn R Programming

VDA (version 1.3)

summary.vda.r: Summary for a vda.r object

Description

Takes a fitted vda.r object produced by vda.r and produces various useful summaries from it.

Usage

"summary"(object, ...)

Arguments

object
An object of class 'vda.r', usually the result of a call to vda.r.
...
Not used.

Details

The function prints the number of cases, the number of classes, and the number of features in object, of class vda.r. It also prints the lambda used in the analysis. Additionally, it prints the coefficients and the resulting predictions made by Vertex Discriminant Analysis on the training set and the following training error.

See Also

vda.r, print.vda.r

Examples

Run this code

# load zoo data
# column 1 is name, columns 2:17 are features, column 18 is class
data(zoo)

# feature matrix without intercept
x<-zoo[,2:17]

# class vector
y<-zoo[,18]

#run VDA
out<-vda.r(x, y)

summary(out)

Run the code above in your browser using DataLab