cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-64096%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E5%90%84%E5%80%8B%E8%B3%87%E6%96%99%E9%BB%9E%E9%9B%86%E5%B9%B3%E6%BB%91%2F%E6%A8%A3%E6%A2%9D%E6%93%AC%E5%90%88%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64096%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E6%83%B3%E7%9F%A5%E9%81%93%E6%98%AF%E5%90%A6%E6%9C%89%E8%BE%A6%E6%B3%95%E7%82%BA%E5%90%84%E5%80%8B%E8%B3%87%E6%96%99%E9%BB%9E%E9%9B%86%E8%AA%BF%E6%95%B4%20lambda%20%E4%BD%BF%E5%85%B6%E6%9B%B4%E5%B9%B3%E6%BB%91%E3%80%82%E4%BE%8B%E5%A6%82%EF%BC%9A%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E5%8F%AA%E4%BF%AE%E6%94%B9%E9%9D%92%E8%89%B2%E6%9B%B2%E7%B7%9A%E7%9A%84%E6%93%AC%E5%90%88%E8%80%8C%E4%B8%8D%E6%94%B9%E8%AE%8A%E5%85%B6%E4%BB%96%E6%9B%B2%E7%B7%9A%E7%9A%84%E6%93%AC%E5%90%88%EF%BC%9F%20%E8%AC%9D%E8%AC%9D%E4%BD%A0%EF%BC%81%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F11716iB13C2078D52E4407%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.PNG%22%20alt%3D%22Capture.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E4%B8%AD%E7%9A%84%E5%90%84%E5%80%8B%E8%B3%87%E6%96%99%E9%BB%9E%E9%9B%86%E5%B9%B3%E6%BB%91%2F%E6%A8%A3%E6%A2%9D%E6%93%AC%E5%90%88%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%20Fit%20Y%20by%20X%20%E7%84%B6%E5%BE%8C%E8%A8%AD%E5%AE%9A%20Group%20By%EF%BC%8C%E7%84%B6%E5%BE%8C%E5%9F%B7%E8%A1%8C%20Flexable%3D%3D%26gt%3BFit%20Spline%E3%80%82%E6%AF%8F%E5%80%8B%E7%B5%84%E9%83%BD%E6%9C%89%E8%87%AA%E5%B7%B1%E7%9A%84%20Lambda%20%E6%BB%91%E6%A1%BF%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22spline.PNG%22%20style%3D%22width%3A%20404px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22spline.PNG%22%20style%3D%22width%3A%20404px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22spline.PNG%22%20style%3D%22width%3A%20404px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F11734i4EC9BB2DD69F7F3E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22spline.PNG%22%20alt%3D%22spline.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2Fbig%20class.jmp%22%20)%3B%0A%0Adt%20%26lt%3B%26lt%3B%20Bivariate(%0A%20Y(%20%3Aheight%20)%2C%0A%20X(%20%3Aweight%20)%2C%0A%20Fit%20Where(%20%3Asex%20%3D%3D%20%22F%22%2C%20Fit%20Spline(%201000%2C%20%7BLine%20Color(%20%7B212%2C%2073%2C%2088%7D%20)%7D%20)%20)%2C%0A%20Fit%20Where(%20%3Asex%20%3D%3D%20%22M%22%2C%20Fit%20Spline(%201000%2C%20%7BLine%20Color(%20%7B66%2C%20112%2C%20221%7D%20)%7D%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
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