cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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

Recommended Articles