BookmarkSubscribe
Choose Language Hide Translation Bar
eastona9
Community Member

script for saving residuals from fit model

Im trying to use a script to save the residuals with a polynomical fit.  I have tried to use << Save residuals, but its not adding the row to my data.  Any ideas?  

 

Thanks

0 Kudos
1 REPLY 1
David_Burnham
Super User

Re: script for saving residuals from fit model

I'm assuming you are using the Bivariate platform (accessed interactively via Fit Y By X).  The platform allows you to fit multiple curves to your data (each curve has its own red triangle).  So the message needs to be sent to the curve not the platform.  If you are doing that already, maybe you are missing the parentheses:

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = Bivariate(
	Y( :height ),
	X( :weight ),
	Fit Polynomial(2)
);
biv << ( Curve[1] << Save Residuals );

 

 

-Dave