BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
eastona9

Not applicable

Joined:

Feb 16, 2017

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

1 REPLY 1
David_Burnham

Super User

Joined:

Jul 13, 2011

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