Plotting Nonlinear Regression using GraphBuilder and/or Analyze (with scripts)This post is similar to this one, and I posted a comment there, but since the post is 2 years old it might not get seen and I'm having trouble adapting the solution(s) to my equation.
I'm doing nonlinear regression using the script below to prepare the data and then using the Analyze option with Normalized Fluorescence as the Y value, and the Model (formula) column as the X value (reversing the axis), and by Well Position, but this only does one at a time. If I use the GraphBuilder, I can't get the Smoother to use the formula . I would like to have all the plots on one graph OR in an absolutely ideal unicorn world, graph 3 well positions at a time (eg. B2-B4) but that seems unrealistic 
Data Table( "Melt Curve Raw Data" ) << New Column( "Normalized Fluorescence",
formula(
(:Fluorescence - Col Min( :Fluorescence, :Well Position )) / (
Col Max( :Fluorescence, :Well Position )
-Col Min( :Fluorescence, :Well Position ))
)
);
Data Table( "Melt Curve Raw Data" ) << New Column( "Model", Numeric,
"Continuous", Format( "Best", 12 ),
Formula(Parameter({m1 = -60, m2 = 0.2, m3 = -50, m4 = -0.3, m5 = 100000, m6 = 320},
((m1 + m2 * (:Temperature + 273)) + (m3 + m4 * (:Temperature + 273)) * Exp((-m5 / (1.987 *
(:Temperature + 273))) * (1 - (:Temperature + 273) / m6))) /
(1 + Exp((-m5 / (1.987 * (:Temperature + 273))) * (1 - (:Temperature + 273) / m6))))));
AnalyticsData TableGraphicsScriptingRe: Plotting Nonlinear Regression using GraphBuilder and/or Analyze (with scripts)I can't tell exactly what you are looking for, by chance does one of these charts show what you are looking for, or can you post a screenshot of the chart that only does one at a time? You said you used Analyze, but I'm not sure which option in that menu you picked.



Graph Builder(
Size( 671, 507 ),
Show Control Panel( 0 ),
Variables(
X( :Model ),
Y( :Normalized Fluorescence ),
Overlay( :Well Position )
),
Elements( Smoother( X, Y, Legend( 12 ) ), Points( X, Y, Legend( 13 ) ) ),
Local Data Filter(
Add Filter(
columns( :Well Position ),
Where( :Well Position == {"B2", "B3", "B4"} ),
Display( :Well Position, N Items( 15 ), Find( Set Text( "" ) ) )
)
)
);
Graph Builder(
Size( 671, 543 ),
Show Control Panel( 0 ),
Variables( X( :Model ), Y( :Normalized Fluorescence ), Wrap( :Well Position ) ),
Elements( Points( X, Y, Legend( 9 ) ), Smoother( X, Y, Legend( 11 ) ) ),
Local Data Filter(
Add Filter(
columns( :Well Position ),
Where( :Well Position == {"B2", "B3", "B4"} ),
Display( :Well Position, N Items( 15 ), Find( Set Text( "" ) ) )
)
)
);
Graph Builder(
Size( 1308, 384 ),
Show Control Panel( 0 ),
Variables(
X( :Model ),
Y( :Normalized Fluorescence ),
Group X( :Well Position )
),
Elements( Smoother( X, Y, Legend( 12 ) ) ),
Local Data Filter(
Add Filter(
columns( :Well Position ),
Where( :Well Position == {"B2", "B3", "B4"} ),
Display( :Well Position, N Items( 15 ), Find( Set Text( "" ) ) )
)
)
);Re: Plotting Nonlinear Regression using GraphBuilder and/or Analyze (with scripts)Wow those are all awesome. The one that I was originally looking for was the multicolor scatterplot in the top right hand corner, but I'm absolutely blown away by the graphs & script you made.
When using the Analyze option, I get the values I need but each graph is separate. I've attached screenshots of the settings I'm currently using along with the results after clicking "go" then clicking "confidence limits".
I also attached the error message I get when trying to use "group" instead of "by" for Well Position.
Re: Plotting Nonlinear Regression using GraphBuilder and/or Analyze (with scripts)The Nonlinear launch dialog over-simplifies the situation. You need to do more to the custom model to indicate how the Group variable affects the parameters. Your model only includes common parameters. The unique parameters depend on the levels of the Group variable.
Please see this page and the note at the bottom.
Do you have JMP Pro? Have your tried the Functional Data Explorer?
Re: Plotting Nonlinear Regression using GraphBuilder and/or Analyze (with scripts)Hi Mark!
Thanks so much for responding. Yes, I have JMP Pro but I have not tried the Functional Data Explorer. I will try reading about it today. Thank you for the suggestion.
I saw the paragraph you linked to about using the "Expand Into Categories" check box. I added this as a 7th parameter, and in the Analyze page it graphed everything on one plot (great!), but only gave me values for one line. Did I use the Expand Into Categories option incorrectly? Should I have added it to one of my original 6 parameters?
Re: Plotting Nonlinear Regression using GraphBuilder and/or Analyze (with scripts)You did not use this feature correctly. The paragraph in Help is correct, but perhaps a bit ambiguous. Here is the correct way, step by step. I am using Big Class to fit a simple exponential model for :weight versus :height with :age as a grouping variable (:weight = A*Exp( B*height ) ).
Add a new data column for the model. Add a formula for the model to the data column. Define the parameters.

Click OK and select the grouping variable.

Repeat this step for the other parameters that are not common to all curves. Build the model. Select the parameters as needed. Here is the grouped exponential model.

Save the formula and launch Nonlinear.

Click OK to begin fitting.

I am afraid, though, that the parameterization in your model will result in high correlation among the estimates. This correlation will be exacerbated by introducing the grouping variable, especially given the number of groups. So an alternative is to use the original model and use the curve ID in the By role. This way will allow you to fit each curve on its own.
On the other hand, if you are not tied to this model, then the FDE is another way. It uses an expansion of basis functions to model the data. These are generic interpolators.
