For the latest version of JMP Help, visit JMP.com/help.


Publication date: 06/21/2023

Save Discrim Matrices

In the Discriminant Analysis red triangle menu, the Save Discrim Matrices option creates a global list (DiscrimResults) for use in the JMP scripting language. The list contains the following, calculated for the training set:

YNames, a list of the covariates (Ys)

XName, the categorical variable

XValues, a list of the levels of X

YMeans, a matrix of the means of the covariates by the levels of X

YPartialCov, the within covariance matrix

Consider the analysis obtained using the Discriminant script in the Iris.jmp sample data table. If you select Save Discrim Matrices from the Discriminant Analysis red triangle menu, the script Discrim Results is saved to the data table.

Figure 5.13 Discrim Results Table Script for Iris.jmp 

Discrim Results Table Script for Iris.jmp

Note: In a script, you can send the scripting command Get Discrim Matrices to the Discriminant platform object. This obtains the same values as Save Discrim Matrices, but does not store them in the data table.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).