14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

174 Fitting Multiple Response Models Chapter 5<br />

Discriminant Analysis<br />

For a classification variable with k levels, JMP adds k distance columns, k classification probability columns,<br />

the predicted classification column, <strong>and</strong> two columns of other computational information to the current<br />

data table.<br />

Example of the Save Discrim Option<br />

Examine Fisher’s Iris data as found in Mardia, Kent, <strong>and</strong> Bibby (1979). There are k = 3 levels of species <strong>and</strong><br />

four measures on each sample.<br />

1. Open the Iris.jmp sample data table.<br />

2. Select Analyze > Fit Model.<br />

3. Select Sepal length, Sepal width, Petal length, <strong>and</strong> Petal width <strong>and</strong> click Y.<br />

4. Select Species <strong>and</strong> click Add.<br />

5. Next to Personality, select Manova.<br />

6. Click Run.<br />

7. From the red triangle menu next to Manova Fit, select Save Discrim.<br />

The following columns are added to the Iris.jmp sample data table:<br />

SqDist[0]<br />

SqDist[setosa]<br />

SqDist[versicolor]<br />

SqDist[virginica]<br />

Prob[0]<br />

Prob[setosa]<br />

Prob[versicolor]<br />

Prob[virginica]<br />

Pred Species<br />

Quadratic form needed in the Mahalanobis distance calculations.<br />

Mahalanobis distance of the observation from the Setosa centroid.<br />

Mahalanobis distance of the observation from the Versicolor centroid.<br />

Mahalanobis distance of the observation from the Virginica centroid.<br />

Sum of the negative exponentials of the Mahalanobis distances, used below.<br />

Probability of being in the Setosa category.<br />

Probability of being in the Versicolor category.<br />

Probability of being in the Virginica category.<br />

Species that is most likely from the probabilities.<br />

Now you can use the new columns in the data table with other JMP platforms to summarize the<br />

discriminant analysis with reports <strong>and</strong> graphs. For example:<br />

1. From the updated Iris.jmp data table (that contains the new columns) select Analyze > Fit Y by X.<br />

2. Select Species <strong>and</strong> click Y, Response.<br />

3. Select Pred Species <strong>and</strong> click X, Factor.<br />

4. Click OK.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!