cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
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!