I am trying to build a generic script for Fit Life By X and make into combined data table", as follows:
flx = Fit Life by X(
Distribution( Weibull ),
Nested Model Tests( Location and Scale ),
Y( :Name("Left"), :Name("Right") ),
X( :d ),
By(:Name ,:Location,:Street,:Apt,:Number),
<<Fit Weibull,
Use Transformation Scale( 0 ),
Show Overlay by Levels( 1 ),
<<Set Scale( Weibull, Simultaneous ),
<<Set Scriptables(
{Distribution Comparisons(
Profiler(
1,
Confidence Intervals( 1 ),
Term Value(
d( "d", Lock( 0 ), Show( 1 ) ),
TTF Left( 507.3, Lock( 0 ), Show( 1 ) )
)
)
), Quantile Comparisons(
Profiler(
1,
Confidence Intervals( 1 ),
Term Value(
d( "d", Lock( 0 ), Show( 1 ) ),
Probability( 0.5, Lock( 0 ), Show( 1 ) )
)
)
), Hazard Comparisons(
Profiler(
1,
Confidence Intervals( 0 ),
Term Value(
d( "d", Lock( 0 ), Show( 1 ) ),
TTF Left( 507.3, Lock( 0 ), Show( 1 ) )
)
)
), Density Comparisons(
Profiler(
1,
Confidence Intervals( 0 ),
Term Value(
d( "d", Lock( 0 ), Show( 1 ) ),
TTF Left( 507.3, Lock( 0 ), Show( 1 ) )
)
)
), Weibull Distribution(
Profiler(
1,
Confidence Intervals( 1 ),
Term Value(
d( "d", Lock( 0 ), Show( 1 ) ),
TTF Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
)
)
), Weibull Quantile(
Profiler(
1,
Confidence Intervals( 1 ),
Term Value(
d( "d", Lock( 0 ), Show( 1 ) ),
Probability( 0.5, Lock( 0 ), Show( 1 ) )
)
)
), Weibull Hazard(
Profiler(
1,
Confidence Intervals( 0 ),
Term Value(
d( "d", Lock( 0 ), Show( 1 ) ),
TTF Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
)
)
), Weibull Density(
Profiler(
1,
Confidence Intervals( 0 ),
Term Value(
d( "d", Lock( 0 ), Show( 1 ) ),
TTF Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
)
)
), Scatter Plot Show Distribution(
Weibull( 0 ),
Lognormal( 0 ),
Loglogistic( 0 ),
Frechet( 0 ),
Exponential( 0 ),
SEV( 0 ),
Normal( 0 ),
Logistic( 0 ),
LEV( 0 )
)}
),
Confidence Interval Method( Likelihood ),
SendToReport(
Dispatch( {"Scatterplot"}, "2", ScaleBox, {Format( "Scientific", 10 )} ),
Dispatch(
{"Nonparametric Overlay"},
"1",
ScaleBox,
{Format( "Scientific", 10 )}
)
)
);
Wait( 0 );
flx["Fit Life by X - TTF Left BY Discrete (d) Location and Scale Name=ABC ,Location=XYZ,Street=123,Apt=A12,Number=5099",
"Results", "Weibull Results", Tab Page Box( 1 ), "Statistics", "Estimates", Table Box( 1 )] << Make Combined Data Table;
This generic script will be applied to multiple different data table where the values of all "By" columns will change which makes the line with "....<<Make Combined Data Table"
not applicable.
How do I script to make a generic script for this?