Learn R Programming

PPtree (version 2.3.0)

PPindex.class: Calculate Projection Pursuit index

Description

For given projected data and class information, calculate projeciton pursuit index.

Usage

PPindex.class(PPmethod, data, class, weight=TRUE, r=NULL, lambda=NULL, ...) PPindex.LDA(data, class, weight=TRUE, ...) PPindex.Lp(data, class, r, ...) PPindex.PDA(data, class, lambda, ...)

Arguments

PPmethod
Selected PP index

``LDA" - LDA index

``Lp" - Lp index

``PDA" - Entropy-class index

data
A data without class information
class
class information
weight
weight flag using in LDA index
r
a parameter for $L^r$ index
lambda
a parameter for PDA index
...
...

Value

The value is an projection pursuit index for given data.

References

Lee, E., Cook, D., and Klinke, S.(2002) Projection Pursuit indices for supervised classification

See Also

PP.optimize

Examples

Run this code
data(iris)

PPindex.class("LDA",iris[,1:2],iris[,5])
PPindex.class("LDA",iris[,1:2],iris[,5],weight=FALSE)
PPindex.class("Lp",iris[,1:2],iris[,5],r=1)
PPindex.class("PDA",iris[,1:2],iris[,5],lambda=0.1)

Run the code above in your browser using DataLab