I'm trying to fit to data points for 1000+ samples. I've found out that Biexponential 5P function gives the best fitting results. However, same samples with one or two data points slightly outside of the trend makes the fitting really strange. For typical population, decay rate parameters are around 0.2 and for those samples fitting provides results in the range of 10. "Parameter bound" and increased iteration limit options in nonlinear fitting resolves the issue. However, doing this manually through GUI is impossible.
Is there a way to set parameter bounds and iteration number "globally" (for all samples)?
I also tried script option, but I'm not familiar with JSL scripting and I couldn't achieve to show fit results with the script below.
<JSL>
Names Default To Here( 1 );
dt = Current Data Table();
obj = Nonlinear( Y( :data ), X( :data Predictor ), By( :ID ) );
obj << Go;
obj << Parameter Bounds(
asympt( 14, 22 ),
scale1( 0, 100 ),
decayrate1( -0.2, 0.1 ),
scale2( -100, 0 ),
decayrate2( -0.2, 0.1 )
);
obj << Iteration Limit( 10000 );
obj << Finish;
G = obj << Get Estimates;
Show( G );
obj << Report View( "Summary" );
obj << get estimates;
Note: Original JSL moved into JSL display box by txnelson
<JSL>