cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Mcc99
Level I

Script for saving inverse prediction from fit curve into data table column

I am trying to write a script that does the same thing as fit curve>save formula>save inverse prediction formula; where the predicted values are automatically calculated and placed in a new column. I've tried a few different scripts I've seen suggested under other users questions but they haven't worked for me. The fit curve runs fine, but the values aren't input into a column.

Am I missing a line to put the inverse prediction formula into a new column? Or do I need a different script altogether? 

I'm using JMP Pro 16 on Windows. Thanks!

I've tried the following:

fc=Data Table( "IgG Plate A Stacked" ) << Fit Curve(
	Y( :Norm Abs ),
	X( :STD curve ),
	Fit Logistic 4P
);
fc <<Save inverse prediction Formula;  
fc=Data Table( "IgG Plate A Stacked" ) << Fit Curve(
	Y( :Norm Abs ),
	X( :STD curve ),
	Fit Logistic 4P
);
fc << Fit Logistic 4P(Save inverse prediction Formula);

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Script for saving inverse prediction from fit curve into data table column

You might have to drop Fit Logistic 4P from your Fit Curve.

 

This is example from Scripting Index and it has Save Inverse Prediction Formula inside Fit Logistic 4P message

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

jthi_0-1708447464498.png

but usually you can move those messages inside the platform launch message like this

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

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Script for saving inverse prediction from fit curve into data table column

You might have to drop Fit Logistic 4P from your Fit Curve.

 

This is example from Scripting Index and it has Save Inverse Prediction Formula inside Fit Logistic 4P message

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

jthi_0-1708447464498.png

but usually you can move those messages inside the platform launch message like this

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

Re: Script for saving inverse prediction from fit curve into data table column

Thanks! Both of those worked!