cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
DavideGrossi
Level II

Save desirability formula from a profiler in the Fit model Platform using JSL

Hello, 

 

I am trying to automate some JMP analysis where I generate a desirability function using the Fit model platform. With the current JSL code I can launch the fit model platform and add the profiler to the platform, but in the last step I would like to save the associated desirability formula to a new column in the data table and this does not work.

 

Do you have suggestions on how I should to this? Here is a piece of code similar to what I am using as an example

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Drug.jmp" );

obj = dt << Fit Model(
	Y( :y ),
	Effects( :Drug, :x ),
	Personality( Standard Least Squares ),
	Run Model()
);


obj << Profiler(1);
obj << Save Desirability Formula;

 Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Save desirability formula from a profiler in the Fit model Platform using JSL

I'm not sure about the syntax to do it in parts, but this seems to work:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Drug.jmp" );

obj = dt << Fit Model(
	Y( :y ),
	Effects( :Drug, :x ),
	Personality( Standard Least Squares ),
	Run Model()
);

obj << Profiler(1, Desirability Functions(1), Save Desirability Formula);

First you have to create profiler, then enable desirability functions and finally save the formula.

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Save desirability formula from a profiler in the Fit model Platform using JSL

I'm not sure about the syntax to do it in parts, but this seems to work:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Drug.jmp" );

obj = dt << Fit Model(
	Y( :y ),
	Effects( :Drug, :x ),
	Personality( Standard Least Squares ),
	Run Model()
);

obj << Profiler(1, Desirability Functions(1), Save Desirability Formula);

First you have to create profiler, then enable desirability functions and finally save the formula.

-Jarmo
DavideGrossi
Level II

Re: Save desirability formula from a profiler in the Fit model Platform using JSL

Thank you very much, this works nicely