turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- Scripting the Save Probability Formula Action

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Feb 7, 2010 8:22 PM
(1160 views)

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!

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Try to expand the "Run Model" argument like this

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

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Wow, that worked! Outstanding!

Thanks a mil MS! You're the greatest!

Thanks a mil MS! You're the greatest!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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