cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
ivanpicchi
Level III

Blue line of logworth: how to change?

 

How do I change the logworth value to alpha 0.07? I would like the logworth effect summary line to be calculated for the alpha value I want.

ivanpicchi_0-1698167941521.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Blue line of logworth: how to change?

This example demonstrates a more direct way to change the reference line for the LogWorth criterion:

// calculate logworth criterion
alpha = 0.07;
criterion = -Log10( alpha_level );

// add reference line for criterion
rpt = Current Report();
rpt["Effect Summary"][PlotColBox(1)] << Set Reference Line( criterion );

View solution in original post

5 REPLIES 5

Re: Blue line of logworth: how to change?

Hi @ivanpicchi ,

It seems that there is no GUI to change the blue line of logworth. You have to use a script to change the line.
Here is an example.

//Calculate logworth from alpha
alpha_level = 0.07;
logworth_values = -Log10( alpha_level );

//Get a reference for the report
rpt = Current Report();
value_matrix = rpt[Outline Box( "Effect Summary" )][Plot Col Box( 1 )] << get as matrix;
count_n = N Row( value_matrix );
line_value = J( count_n, 1, logworth_values );
//Change the line
rpt[Outline Box( "Effect Summary" )][Plot Col Box( 1 )] << lower( line_value );
rpt[Outline Box( "Effect Summary" )][Plot Col Box( 1 )] << upper( line_value );

Hope it helps.

ivanpicchi
Level III

Re: Blue line of logworth: how to change?

Where do I click to change these scripts?

Re: Blue line of logworth: how to change?

Hi @ivanpicchi ,

Choose File > New > Script and paste the script. I think Mark's script is better than mine.
After you have created a report, go to the Edit menu in the script editor and choose Run Script.

Re: Blue line of logworth: how to change?

This example demonstrates a more direct way to change the reference line for the LogWorth criterion:

// calculate logworth criterion
alpha = 0.07;
criterion = -Log10( alpha_level );

// add reference line for criterion
rpt = Current Report();
rpt["Effect Summary"][PlotColBox(1)] << Set Reference Line( criterion );
ivanpicchi
Level III

Re: Blue line of logworth: how to change?

Works, thx a lot!

Recommended Articles