Learn R Programming

PPtreeExt (version 0.1.0)

LDAopt_Ext: PP optimization using LDA index

Description

Projection Pursuit Optimization Using LDA Index

Usage

LDAopt_Ext(origclass, origdata, q = 1, weight = TRUE, ...)

Value

An object of class "PPoptim", which is a list containing:

indexbest

Numeric value representing the maximum LDA index achieved by the optimal projection. Higher values indicate better class separation.

projbest

Numeric matrix of optimal projection coefficients with dimensions ncol(origdata) by q. Each column represents an optimal projection direction that maximizes the LDA index for class separation.

origclass

The original class information vector passed as input, preserved for reference.

origdata

The original data matrix without class information, preserved for reference.

Arguments

origclass

Factor or numeric vector containing the class labels for each observation.

origdata

Numeric matrix or data frame containing the predictor variables without class information. Each row represents an observation and each column represents a variable.

q

Integer specifying the dimension of the projection space. Default is 1 for 1-dimensional projection.

weight

Logical indicating whether to use weighted LDA index calculation. Default is TRUE.

...

Additional arguments to be passed to internal optimization methods.

Details

Finds the q-dimensional optimal projection using the Linear Discriminant Analysis (LDA) projection pursuit index. This implementation follows the method described in PPtree.

The LDA projection pursuit index measures class separation by maximizing the ratio of between-class variance to within-class variance in the projected space. This function:

  1. Calls LDAopt to find the optimal q-dimensional projection directions

  2. Evaluates the LDA index for the optimal projection using LDAindex2

  3. Returns both the projection matrix and its associated index value

When weight = TRUE, the index calculation accounts for class proportions, giving appropriate weight to each class in the optimization.

References

Lee, EK., Cook, D., Klinke, S., and Lumley, T. (2005) Projection Pursuit for Exploratory Supervised Classification, Journal of Computational and Graphical Statistics, 14(4):831-846.

See Also

PDAopt_Ext, findproj_Ext