cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

Extracting the Bonferroni limits from the Studentized Residual Plot

Hi,

I would like to get the numerical value of the Bonferroni limit from a existing Studentized Residuals plot and maybe see it change when changing the number of parameters/observations. I already tried to ask the Assisitant to write a JSL code, but that did not work. I also tried to implement the script from this post to my own data and that also did not work (I am a newbie at scripting) Solved: Automate Outlier identification with Bonferroni Limits - User Community

Thanks in advance!!

 

Best regards, Robin

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Extracting the Bonferroni limits from the Studentized Residual Plot

Hi @ConvolutionOx19 

 

I'll take the JSL from the post you've put and annotate it just to make it clearer what you need to do (essentially just copy paste your fit model details):

Names Default To Here( 1 );

// example
dt = Current Data Table();


///////////////////////***********CHANGE THIS BIT **************////////////////

// fit least squares with studentized residuals
obj = dt << 

//////COPY PASTE YOUR FIT MODEL TEXT HERE///////////////
Fit Model(
	Y( :ABRASION ),
	Effects( :SILICA, :SILANE, :SULFUR ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Minimal Report" ),
	Run(
		:ABRASION << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
		Parameter Estimates( 1 ), Scaled Estimates( 0 ),
		Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
		Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 1 ),
		Plot Effect Leverage( 1 ), Plot Residual by Normal Quantiles( 0 ),
		Box Cox Y Transformation( 0 )}
	)
);

//////////////////END OF COPY PASTE//////////////////////

// access report layer
rpt = obj << Report;

// access plot frame
frame = rpt["Studentized Residuals"][FrameBox(1)];

// access line segments in plot frame
line = frame << Find Segs;

// ask for value of line representing Bonferroni limits (only positive necessary)
bonferroni = (line[2] << Get Y Values)[1];

// display limit in Log
Show( bonferroni );

To paste the right details, fit your model, go to the red triangle options on the top of the model page and get 'save script > to clipboard'.

 

Thanks,
Ben

“All models are wrong, but some are useful”

View solution in original post

2 REPLIES 2

Re: Extracting the Bonferroni limits from the Studentized Residual Plot

Hi @ConvolutionOx19 

 

I'll take the JSL from the post you've put and annotate it just to make it clearer what you need to do (essentially just copy paste your fit model details):

Names Default To Here( 1 );

// example
dt = Current Data Table();


///////////////////////***********CHANGE THIS BIT **************////////////////

// fit least squares with studentized residuals
obj = dt << 

//////COPY PASTE YOUR FIT MODEL TEXT HERE///////////////
Fit Model(
	Y( :ABRASION ),
	Effects( :SILICA, :SILANE, :SULFUR ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Minimal Report" ),
	Run(
		:ABRASION << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
		Parameter Estimates( 1 ), Scaled Estimates( 0 ),
		Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
		Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 1 ),
		Plot Effect Leverage( 1 ), Plot Residual by Normal Quantiles( 0 ),
		Box Cox Y Transformation( 0 )}
	)
);

//////////////////END OF COPY PASTE//////////////////////

// access report layer
rpt = obj << Report;

// access plot frame
frame = rpt["Studentized Residuals"][FrameBox(1)];

// access line segments in plot frame
line = frame << Find Segs;

// ask for value of line representing Bonferroni limits (only positive necessary)
bonferroni = (line[2] << Get Y Values)[1];

// display limit in Log
Show( bonferroni );

To paste the right details, fit your model, go to the red triangle options on the top of the model page and get 'save script > to clipboard'.

 

Thanks,
Ben

“All models are wrong, but some are useful”

Re: Extracting the Bonferroni limits from the Studentized Residual Plot

Hi @Ben_BarrIngh,

This worked. Thank you very much!

 

Regards, Robin

Recommended Articles