PDAopt_MOD | R Documentation |
PP optimization using PDA index same as PPtree
PDAopt_MOD(origclass,origdata, q = 1, weight = TRUE, lambda = 0.1,...)
origclass |
class information vector of data |
origdata |
data matrix without class information |
q |
dimension of projection vector |
weight |
weight flag in PDA index |
lambda |
lambda in PDA index |
... |
arguments to be passed to methods |
Find the q-dimensional optimal projection using PDA projectin pursuit index
indexbest maximum PDA index value
projbest optimal q-dimensional projection matrix
origclass original class information vector
origdata original data matrix without class information
Lee, EK, Cook, D.(2010) A Projection Pursuit Index for Large p Small n Data, Statistics and Computing, 20:381-392.
data(penguins)
penguins <- na.omit(penguins[, -c(2,7)])
penguins_pda_proj <- PDAopt_MOD(penguins[,1],penguins[,-1], weight=TRUE, q=2, lambda=0.1)
penguins_pda_proj$indexbest
penguins_pda_proj$projbest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.