Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
Ann_JMP_User
Level III

Inserting a self-defined formula in JMP script

Hi all,

 

I am actually looking into inserting a formula in the script for every Row available with data, after obtaining the mean of M1-M7 in the summary table.

But somehow, I'm always being prompted with error while debugging. Is there anyway that I can do this better ? 

 

image.png 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: Inserting a self-defined formula in JMP script

The new column syntax is in error.  It should be:

FE = dt2 << New Column( "FE",
     Numeric,
     Continuous,
     Width( 5 ),
     Formula( :M7 - ( :M3 - :M1 - Z ) )
);
Jim

View solution in original post

2 REPLIES 2
Highlighted
txnelson
Super User

Re: Inserting a self-defined formula in JMP script

The new column syntax is in error.  It should be:

FE = dt2 << New Column( "FE",
     Numeric,
     Continuous,
     Width( 5 ),
     Formula( :M7 - ( :M3 - :M1 - Z ) )
);
Jim

View solution in original post

Highlighted
Ann_JMP_User
Level III

Re: Inserting a self-defined formula in JMP script

Thank you very much for pointing this out, Jim. 

Article Labels

    There are no labels assigned to this post.