Machine Learning - Save Variable(s) - Discriminant Variables

From Q
Jump to navigation Jump to search

Create a new variable set containing the discriminant variables from a linear discriminant analysis

Creates a new questionvariable set containing the discriminant variables from Machine Learning - Linear Discriminant Analysislinear discriminant analysis.

Example

A table of discriminant variables.

Technical details

Unlike the defaults in most R packages, this implementation predicts values for observations not in the estimation sample.

Code

includeWeb("QScript R Output Functions");

main();
 
function main() {
    saveVariables("Discriminant Variables", "LDA", "DiscriminantVariables(", ")", null, null, "discrim.var", "LDA");
}