cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

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

Individual sets of data points Smoothing/Spline Fitting in Graph builder

Hello,

 

I'd like to know if there's anyway of adjusting the lambda in smoother for  individual sets of datapoints.  For eg: can only the fitting of the cyanish curve be modified without changing the fitting of the other curves? Thank you! 

Capture.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Individual sets of data points Smoothing/Spline Fitting in Graph builder

You can use Fit Y by X and then set the Group By, and then do a Flexable==>Fit Spline.  Each group will have it's own Lambda slider

spline.PNG

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

dt << Bivariate(
	Y( :height ),
	X( :weight ),
	Fit Where( :sex == "F", Fit Spline( 1000, {Line Color( {212, 73, 88} )} ) ),
	Fit Where( :sex == "M", Fit Spline( 1000, {Line Color( {66, 112, 221} )} ) )
);
Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Individual sets of data points Smoothing/Spline Fitting in Graph builder

You can use Fit Y by X and then set the Group By, and then do a Flexable==>Fit Spline.  Each group will have it's own Lambda slider

spline.PNG

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

dt << Bivariate(
	Y( :height ),
	X( :weight ),
	Fit Where( :sex == "F", Fit Spline( 1000, {Line Color( {212, 73, 88} )} ) ),
	Fit Where( :sex == "M", Fit Spline( 1000, {Line Color( {66, 112, 221} )} ) )
);
Jim

Recommended Articles