Learn R Programming

PPtreeViz (version 1.0.3)

PDAopt: PP optimization using PDA index

Description

Find the q-dim optimal projection using PDA projectin pursuit index

Usage

PDAopt(origclass,origdata,q=1,weight=TRUE,lambda=0.1, ...)

Arguments

origclass
class information vector
origdata
data matrix without class information
q
dimension of projection matrix
weight
weight flag using in PDA index
lambda
lambda in PDA index
...
arguments to be passed to methods

Value

  • indexbest maximum PDA index value projbest optimal q-dim projection matrix origclass original class information vector origdata original data matrix without class information

References

Lee, EK., Cook, D.(2010) A projection pursuit index for large p small n data, Statistics and Computing, 20:381-392.

Examples

Run this code
data(iris)
PDA.proj.result <- PDAopt(iris[,5],iris[,1:4],weight=TRUE,q=2,lambda=0.1)
PDA.proj.result$indexbest
PDA.proj.result$projbest

Run the code above in your browser using DataLab