BookmarkSubscribeRSS Feed

Scripting the Save Probability Formula Action

Please help me if you can!

I'm new to JSL scripting but have been using JMP since rev 5. I'm trying to automate the sequence of clicking the carrot on a Nominal Logistic Fit and clicking "Save Probability Formula". So far I've got:

dt = currentdatatable();

g = Fit Model(
Y( :Signals ),
Effects(
:Name( "RSI(14)" ),
:Name( "CCI(20)" ),
:Name( "EMA(22)" ),
:Name( "PPO(22)" )
),
Personality( Nominal Logistic ),
Run Model( Likelihood Ratio Tests( 1 ), Wald Tests( 0 ) )

);

g << Select Save Probability Formula[];

But this obviously does not work. I'm not sure how to create an action for that object and the Scripting Guide is less than helpful. Thanks in advance for posting!
3 REPLIES
ms

Super User

Joined:

Jun 23, 2011

Re: Scripting the Save Probability Formula Action

Try to expand the "Run Model" argument like this

Run Model( Likelihood Ratio Tests( 1 ), Wald Tests( 0 ) ,<< save probability formula);

Re: Scripting the Save Probability Formula Action

Wow, that worked! Outstanding!

Thanks a mil MS! You're the greatest!
mpb

Super User

Joined:

Jun 23, 2011

Re: Scripting the Save Probability Formula Action

Your code should also work if you remove the square brackets in the last line. It did for me in 8.0.2.