All
All using Run Script
Summary: Runs the stepwise fit process for a data table, extracting initial and final estimates matrices while modifying path diagram properties.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "Stepwise Fit" );
rpt = obj << report;
est1 = rpt[Outline Box( "Current Estimates" )][Table Box( 1 )] << get as matrix;
rpt[Outline Box( "Current Estimates" )][CheckBoxBox( 1 )] << set( 5, 1 );
est2 = rpt[Outline Box( "Current Estimates" )][Table Box( 1 )] << get as matrix;
obj << Remove All( 1 );
est3 = rpt[Outline Box( "Current Estimates" )][Table Box( 1 )] << get as matrix;
Code Explanation:
- Open data table;
- Run Stepwise Fit script.
- Extract initial estimates matrix.
- Set checkbox for significance level.
- Extract updated estimates matrix.
- Remove all terms from model.
- Extract final estimates matrix.