| findproj_Ext | R Documentation |
Finds an optimal 1D projection of multivariate data that best separates classes using Linear Discriminant Analysis (LDA) or Penalized Discriminant Analysis (PDA), then determines a cutpoint for classification based on entropy splitting.
findproj_Ext(
origclass,
origdata,
PPmethod = "LDA",
q = 1,
weight = TRUE,
lambda = 0.1
)
origclass |
Factor or numeric vector containing the class labels for each observation. |
origdata |
Numeric matrix or data frame containing the predictor variables. Each row represents an observation and each column represents a variable. |
PPmethod |
Character string specifying the projection pursuit method.
Either |
q |
Integer specifying the dimension of the projected data. Default is 1 for 1D projection. |
weight |
Logical indicating whether to use weighted LDA index calculation.
Default is |
lambda |
Numeric penalty parameter for the PDA method. Default is 0.1.
Only used when |
This function performs projection pursuit to find a one-dimensional projection that optimally separates classes in multivariate data. The process involves:
Finding the optimal projection direction using either LDA or PDA
Projecting all observations onto this direction
Determining an optimal cutpoint using entropy-based splitting
Creating binary classification indicators based on the cutpoint
The cutpoint is calculated to minimize the weighted entropy of the resulting split. In edge cases where the cutpoint equals the maximum projected value, the function uses the second-largest value to ensure a valid split.
A list with the following components:
Index |
Numeric value representing the optimization criterion achieved by the best projection. Higher values indicate better class separation. |
Alpha |
Numeric vector of length |
C |
Numeric scalar representing the optimal cutpoint (threshold) on the projected data. This value is determined using entropy-based splitting and divides observations into two groups for classification. |
IOindexL |
Logical vector of length |
IOindexR |
Logical vector of length |
The vectors IOindexL and IOindexR are complementary
(mutually exclusive and exhaustive), meaning every observation is assigned
to exactly one group.
Lee, YD, Cook, D., Park JW, and Lee, EK (2013) PPtree: Projection Pursuit Classification Tree, Electronic Journal of Statistics, 7:1369-1386.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.