BookmarkSubscribe
Choose Language Hide Translation Bar
jrphage
Community Trekker

Saving prediction formula back to table

Hi Team,

 

I have searched but have not found a solution that works for my problem. I have the following code:

fitCubic = dtCheck1 << Fit Curve(
	Y( :Name( "Bracketed Concentration (nmol/L)" ) ),
	X( :Area Ratio ),
	Fit Cubic,
	By( :Component Name )
);
fitCubic << prediction formula;

I want to save the prediction formulas (by Component Name) back to the originating table (dtCheck1), but this code does not accomplish this task. Ideas?

0 Kudos
1 REPLY 1
txnelson
Super User

Re: Saving prediction formula back to table

I believe your syntax is not correct.  Here is the Save Prediction Formula example from the Scripting Index

Names Default To Here( 1 );
dt = Open(
	"$SAMPLE_DATA/Nonlinear Examples/Bioassay.jmp"
);
obj = Fit Curve(
	Y( :Toxicity ),
	X( :log Conc ),
	Group( :formulation ),
	Fit Logistic 4P
);
obj << (Fit[1] << Save Prediction Formula);
Jim