script for saving residuals from fit modelIm 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
Re: script for saving residuals from fit modelI'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 );