Fit Life by X
Fit Life By X
Summary: Fits a life table by X, selecting nested model tests, and configuring window elements to interact with the results.
Code:
dt = Open("data_table.jmp");
obj = dt << Fit Life By X( Y( :Hours ), Censor( :Censor ), Nested Model Tests( 1 ) );
wn = Window( "Fit Life by X" );
wn[ListBoxBox( 1 )] << set selected( 2 );
wn[Button Box( 2 )] << click;
neb = wn[Number Edit Box( 1 )];
neb << set( 60 );
wn[Combo Box( 1 )] << Set( 1 );
wn[Combo Box( 2 )] << Set( 2 );
wn[Button Box( 6 )] << Click();
txt = (Current Report()["Comparisons"]["Acceleration Factor Profiler"] << sib) << get text;
Code Explanation:
- Open table.
- Fit life by X.
- Select nested model tests.
- Get window.
- Select item in list box.
- Click button.
- Set number edit box value.
- Set combo box value.
- Set combo box value.
- Click button.
Summary: Configures Fit Life by X analysis with a custom confidence interval method, disabling Wald intervals globally.
Code:
dt = Open("data_table.jmp");
obj = dt << Fit Life by X();
For( i = N Items( Window() ), i >= 1, i--,
lnchWin = (Window()[i]);
winTtl = lnchWin << get window title;
If( winTtl == "Fit Life by X",
confIntMeth = lnchWin[Combo Box( 3 )] << get text;
Break();
);
);
Set Preferences( Fit Life by X( Confidence Interval Method( "Wald", <<Off ) ) );
Code Explanation:
- Open data table.
- Run Fit Life by X analysis.
- Loop through all windows.
- Get current window title.
- Check if title matches "Fit Life by X".
- Retrieve confidence interval method.
- Break loop on match.
- Set platform preferences globally.
- Disable Wald confidence interval method.