Subscribe Bookmark RSS Feed

Script to Save Formula of Discriminant Analysis?

perceptor

Community Trekker

Joined:

Mar 26, 2014

Hello all, I'm trying to write my own script to perform leave one out cross validation using linear discriminant models. I know the script language to perform discriminant analysis, but am unsure of how to save the formulas (other than manually) generated by the model to the data table or how to extract them after the analysis has been performed. Any help is much appreciated.

Cheers!

1 REPLY
kemal_oflus

Staff

Joined:

Jul 2, 2014

Following example will help you save the distance formulas and the probabilities to data table.

dt = Open( "$SAMPLE_DATA/Iris.jmp" );

obj = Discriminant(

  X( :Species ),

  Y(

  :Sepal length,

  :Sepal width,

  :Petal length,

  :Petal width

  )

);

obj << Save Formulas;