cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

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