cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
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