Fatigue Model
Summary: Creates and analyzes a fatigue model, generating estimates, reports, and fitting information for a data table.
Code:
dt = Open("data_table.jmp");
obj = dt << Fatigue Model(
N( :Cycles ),
S( :Stress ),
Censor( :Censoring Indicator ),
Censor Code( "Runout" ),
Fit Model( "Box-Cox Loglinear Sigma", "Lognormal" )
);
getEst = obj << get estimates;
rpt = obj << report;
fitInfo = obj << get fitting information();
scales = ((fitInfo << get values)[1]) << get values;
modCompEst = (rpt[Outline Box( "Model Comparisons" )][Table Box( 1 )] << get as matrix);
modCompTxt = (rpt[Outline Box( "Model Comparisons" )][Text Box( 1 )] << get text);
Code Explanation:
- Open data table;
- Create Fatigue Model object.
- Set cycles as N.
- Set stress as S.
- Set censoring indicator.
- Define censor code as "Runout".
- Fit models: Box-Cox Loglinear Sigma, Lognormal.
- Retrieve estimates.
- Generate report.
- Get fitting information.