Reliability Forecast
Reliability Forecast using Function
Summary: Runs the reliability forecast analysis for a data table, utilizing the Subscribe and Unsubscribe functions to track events and perform calculations.
Code:
dt2 = Open("data_table.jmp");
on tbl open = Function( {dt2},
dt2 << Subscribe( "CrashySub", On Add Columns( Function( {d2t, cols}, . ) ) )
);
Subscribe to Data Table List( "CrashyListSub", On Open( on tbl open ) );
dt2 << Reliability Forecast( Input Format( Nevada ), Production Count( :Volume ), Timestamp( :Time ), Failure Count( :"08/2000"n ) );
dt2 << Unsubscribe( "CrashySub", All );
Unsubscribe to Data Table List( "CrashyListSub", "ALL" );
Code Explanation:
- Open data table.
- Define function for table open event.
- Subscribe to table open event.
- Subscribe to data table list.
- Perform reliability forecast analysis.
- Unsubscribe from table event.
- Unsubscribe from data table list.
Example 1
Summary: Runs a reliability forecast analysis by opening a data table, setting input format to Nevada, and specifying failure counts for each month.
Code:
dt = Open("data_table.jmp");
plat = Reliability Forecast(
Input Format( Nevada ),
Production Count( :Sold Quantity ),
Interval Censored Failure( 0 ),
Timestamp( :Sold Month ),
Failure Count(
:Name( "08/2009" ), :Name( "09/2009" ), :Name( "10/2009" ), :Name( "11/2009" ), :Name( "12/2009" ), :Name( "01/2010" ),
:Name( "02/2010" )
),
Life Time Unit( Month ),
);
plat << Relaunch Analysis;
wn = Window( "Reliability Forecast" );
Code Explanation:
- Open data table.
- Create reliability forecast platform.
- Set input format to Nevada.
- Use sold quantity for production count.
- Define interval censored failure at zero.
- Use sold month as timestamp.
- Specify failure counts for each month.
- Set lifetime unit to month.
- Relaunch the analysis.
- Open reliability forecast window.
Example 2
Summary: Runs a reliability forecast analysis by opening a data table, specifying input format and censor variable, and launching an analysis window.
Code:
dt = Open("data_table.jmp");
rf = Reliability Forecast(
Input Format( Time to Event ),
Time to Event( :Time ),
Censor( :censor ),
Life Time Unit( Numeric ),
Forecast Start( 0 ),
Life Time Unit( Numeric ),
Censor Code( 1 )
);
rf << Relaunch Analysis;
wn = Window( "Reliability Forecast" );
Code Explanation:
- Open data table.
- Perform reliability forecast.
- Set input format.
- Specify time to event.
- Define censor variable.
- Set life time unit.
- Define forecast start.
- Confirm life time unit.
- Set censor code.
- Launch analysis window.
Example 3
Summary: Runs the creation and relaunch of a reliability forecast analysis, utilizing two data tables with specific parameters for production and failure data.
Code:
dt1 = Open("data_table.jmp");
dt2 = Open("data_table.jmp");
rf = dt1 << Reliability Forecast(
Input Format( Dates ),
Production Data Table( Small Production part1, Production Count( :Sold Quantity ), Timestamp( :Sold Month ) ),
Failure Data Table(
Small Production part2,
Failure Time( :Return Month ),
Timestamp( :Sold Month ),
Failure Count( :Return Quantity )
),
Life Time Unit( Month )
);
rf << Relaunch Analysis;
wn = Window( "Reliability Forecast" );
Code Explanation:
- Open data table.
- Open data table.
- Create reliability forecast object.
- Set input format to dates.
- Define production data table parameters.
- Define failure data table parameters.
- Set life time unit to months.
- Relaunch the analysis.
- Get window reference.
- Display window.