Save desirability formula from a profiler in the Fit model Platform using JSLHello,
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!
Data TableScriptingRe: Save desirability formula from a profiler in the Fit model Platform using JSLI'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.
Re: Save desirability formula from a profiler in the Fit model Platform using JSLThank you very much, this works nicely