Machine Learning - Save Variable(s) - Discriminant Variables

From Q
Jump to: navigation, search

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");
}