I am fairly new to the JSL coding and I have been struggling to automate a workflow involving the Fit Curve platform. Here is what I am trying to automate:
Step 1: Fit Curve Exponential 2P model to data by providing X, Y, and BY data. Script code below works fine.
Step 2: Collect fit parameters: Scale and Growth Rate (I wish this was just "a" and "b") for each Sample ID and create a new Table that has columns: "Sample ID", "Scale" or "a", "Growth Rate" or "b", "Number of datapoints" (Used in Fit)
- this is where I am struggling, I can create a new table with the appropriate headings (see script below). but I cannot figure out how to communicate with the Fit Curve report to extract the values for the fits for each sample ID and then use those to populate one row for each SampleID. I have tried the JMP assistant and Claude to help code this and they both struggled to extract this info from the report.
Step 3: In this new table add two more columns: "Prediction at TOS =60", and "Uncertainty of Prediction" and use the Exponential 2P formula (y= a*exp(b*x)) for the prediction and use fit error in parameters to estimate the uncertainty of value at TOS = 60.
Thanks for any help,
Dave
Fit Curve(
Y( :Conversion ),
X( :TOS ),
Fit Exponential 2P,
By( :Sample ID )
);
results_dt = New Table( "Exponential Fit Results",
Add Rows( 0 ),
New Column( "Sample ID" ),
New Column( "a", Numeric, Continuous ),
New Column( "b", Numeric, Continuous ),
New Column( "Number of Points", Numeric, Continuous ),
New Column( "Conversion at 60 hr", Numeric, Continuous ),
New Column( "Error of Estimate", Numeric, Continuous )
);