Outline Box
Outline Box using Run Script
Example 1
Summary: Opens a data table, runs a distribution script, and selects specific boxes in the report to visualize the results.
Code:
dt = Open("data_table.jmp");
dist = dt << Run Script( "Distribution" );
Report( dist )[Axis Box( 1 )] << Select;
Report( dist )[FrameBox( 1 )] << Select;
Report( dist )[Outline Box( 4 )] << Select;
Code Explanation:
- Open data table.
- Run distribution script.
- Select first axis box.
- Select first frame box.
- Select fourth outline box.
Example 2
Summary: Executes a virtual join script, retrieving a report object and extracting specific box titles and table contents.
Code:
dt2 = Open("data_table.jmp");
dt3 = Open("data_table.jmp");
obj = dt3 << Run Script( " Distribution: Virtual Join - Age and Rating" );
rep = obj << Report;
freq = rep[Outline Box( 6 )] << Get Title;
quant = rep[Table Box( 1 )] << make into data table;
Code Explanation:
- Open data table;
- Open data table;
- Run virtual join script.
- Retrieve report object.
- Extract outline box title.
- Extract table box content.
- Convert table box to data table.
Example 3
Summary: Generates a 3-Factor CFA report by recalling model specification from an SEM script, leveraging the Run Script and Report functions in JMP.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "SEM: Measurement Models" );
rpt = obj << Report();
scr = rpt[Outline Box( "?: 3-Factor CFA" )] << Get Scriptable Object();
scr << Recall in Model Specification();
Code Explanation:
- Open data_table data
- Run SEM script.
- Generate report object.
- Access 3-Factor CFA outline.
- Retrieve scriptable object.
- Recall model specification.
Example 4
Summary: Configures diagnostics checkbox in a path diagram report, enabling and disabling it to track changes.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "Fit Life by X" );
rpt = obj << report;
default = rpt[Outline Box( "Diagnostics - Regression" )][CheckBoxBox( 1 )] << get;
rpt[Outline Box( "Diagnostics - Regression" )][CheckBoxBox( 1 )] << Set( 1, 1 );
default1 = rpt[Outline Box( "Diagnostics - Regression" )][CheckBoxBox( 1 )] << get;
rpt[Outline Box( "Diagnostics - Regression" )][CheckBoxBox( 1 )] << Set( 1, 0 );
default0 = rpt[Outline Box( "Diagnostics - Regression" )][CheckBoxBox( 1 )] << get;
Code Explanation:
- Open table.
- Run "Fit Life by X".
- Get report object.
- Retrieve diagnostics checkbox state.
- Enable diagnostics checkbox.
- Retrieve updated checkbox state.
- Disable diagnostics checkbox.
- Retrieve final checkbox state.
Example 5
Summary: Estimates Weibull life distribution parameters and probability quantiles from a data table, utilizing Run Script and report objects.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "Life Distribution - Weibull" );
rpt = obj << report;
parEstWeibullObj = rpt[Outline Box( "Parametric Estimate - Weibull" )] << Get Scriptable Object;
parEstWeibullObj << Custom Estimation;
estProbObj = rpt[Outline Box( "Estimate Probability" )] << Get Scriptable Object;
estQuantObj = rpt[Outline Box( "Estimate Quantile" )] << Get Scriptable Object;
twoProb = (Words( Trim( rpt[Outline Box( "Estimate Probability" )][Table Box( 1 )] << Get Text ), "\!N ." ));
estProbObj << Side( 2 );
lowProb = (Words( Trim( rpt[Outline Box( "Estimate Probability" )][Table Box( 1 )] << Get Text ), "\!N ." ));
estProbObj << Side( 0 );
twoProb = (Words( Trim( rpt[Outline Box( "Estimate Probability" )][Table Box( 1 )] << Get Text ), "\!N ." ));
estProbObj << Side( 1 );
uppProb = (Words( Trim( rpt[Outline Box( "Estimate Probability" )][Table Box( 1 )] << Get Text ), "\!N ." ));
estProbObj << Side( 0 );
twoProb = (Words( Trim( rpt[Outline Box( "Estimate Probability" )][Table Box( 1 )] << Get Text ), "\!N ." ));
twoQuant = (Words( Trim( rpt[Outline Box( "Estimate Quantile" )][Table Box( 1 )] << Get Text ), "\!N ." ));
estQuantObj << Side( 1 );
lowQuant = (Words( Trim( rpt[Outline Box( "Estimate Quantile" )][Table Box( 1 )] << Get Text ), "\!N ." ));
estQuantObj << Side( 0 );
twoQuant = (Words( Trim( rpt[Outline Box( "Estimate Quantile" )][Table Box( 1 )] << Get Text ), "\!N ." ));
estQuantObj << Side( 2 );
uppQuant = (Words( Trim( rpt[Outline Box( "Estimate Quantile" )][Table Box( 1 )] << Get Text ), "\!N ." ));
estQuantObj << Side( 0 );
twoQuant = (Words( Trim( rpt[Outline Box( "Estimate Quantile" )][Table Box( 1 )] << Get Text ), "\!N ." ));
Code Explanation:
- Open data table;
- Run Weibull life distribution script.
- Retrieve report object.
- Access Weibull parametric estimate.
- Perform custom estimation.
- Access probability estimate outline.
- Set side to 2 for probability.
- Retrieve low probability values.
- Reset side to 0 for probability.
- Retrieve upper probability values.