print.vda.r: Print a vda.r object

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/print.vda.r.R

Description

The default print method for a vda.r object.

Usage

1
2
## S3 method for class 'vda.r'
print(x, ...)

Arguments

x

Object of class 'vda.r', usually the result of a call to vda.r.

...

Not used.

Details

Prints out the predicted classes for given training data found using Vertex Discriminant Analysis. summary.vda.r provides more detailed information about the VDA object.

Author(s)

Edward Grant, Xia Li, Kenneth Lange, Tong Tong Wu

Maintainer: Edward Grant edward.m.grant@gmail.com

References

Lange, K. and Wu, T.T. (2008) An MM Algorithm for Multicategory Vertex Discriminant Analysis. Journal of Computational and Graphical Statistics, Volume 17, No 3, 527-544.

See Also

vda.r, summary.vda.r

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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)

print(out)

VDA documentation built on May 29, 2017, 6:32 p.m.