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
mystylelife19
Level III

How to insert fit y by x using script?

Hello, i am doing analyze the wafer using script. But eventually, my script only work when i manual plot first fit y by x using this selection. Can i know the script that can run automatically selected fit y by x using that selection? 

Distribution(
	Continuous Distribution(
		Column( :IL_ALL_MAG_C1_S21 ),
		Normal Quantile Plot( 1 )
	),
	SendToReport(
		Dispatch(
			{"IL_ALL_MAG_C1_S21"},
			"",
			Picture Box( 5 ),
			{Set Summary Behavior( "Collapse" )}
		),
		Dispatch(
			{"IL_ALL_MAG_C1_S21"},
			"Distrib Quantile Plot",
			FrameBox,
			{Row Legend(
				IL_ALL_MAG_C1_S21,
				Color( 1 ),
				Color Theme( "Blue to Gray to Red" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);

Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == ID_Wafer & :SITE_NO == 1 ) );

Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == ID_Wafer & :SITE_NO == 2 ) );


mystylelife19_0-1658373155655.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to insert fit y by x using script?

If I am understanding what you want, all you have to do is to change 

Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == ID_Wafer & :SITE_NO == 1 ) );

Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == ID_Wafer & :SITE_NO == 2 ) );

to

Bivariate( Y( :Y ), X( :X ), By( :WAFER_ID, :SITE_NO ) );

 

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How to insert fit y by x using script?

If I am understanding what you want, all you have to do is to change 

Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == ID_Wafer & :SITE_NO == 1 ) );

Bivariate( Y( :Y ), X( :X ), Where( :WAFER_ID == ID_Wafer & :SITE_NO == 2 ) );

to

Bivariate( Y( :Y ), X( :X ), By( :WAFER_ID, :SITE_NO ) );

 

 

Jim
mystylelife19
Level III

Re: How to insert fit y by x using script?

Great it's work for me. Thankyou so much :))

Recommended Articles