Run Script
Example 1
Summary: Opens a data table, runs a distribution script, and modifies the path diagram properties to customize the appearance of paths in the SEM model.
Code:
dt = Open("data_table.jmp");
dist = dt << Run Script( "Distribution" );
Code Explanation:
- Open data table.
- Run distribution script.
Example 2
Summary: Opens a data table, runs the Distribution script, and shows its properties. It then uses the Path Diagram Properties to customize the appearance of paths in the diagram.
Code:
dt = Open("data_table.jmp");
dist = dt << Run Script( "Distribution" );
dist << Show Properties;
Code Explanation:
- Open data table.
- Run Distribution script on data table.
- Show properties of Distribution output.
Example 3
Summary: Creates a path diagram with customized appearance and thickness settings, utilizing the Run Script function to execute the 'Bubble Country by Year' script.
Code:
dt = Open("data_table.jmp");
dt << Run Script( "Bubble Country by Year" );
Code Explanation:
- Open data table.
- Run script named "Bubble Country by Year".
Example 4
Summary: Creates a bubble plot with local data filtering, utilizing the Run Script function in JMP.
Code:
dt = Open("data_table.jmp");
dt << run script( "Bubble Plot with Local Data Filter" );
Code Explanation:
- Open data table;
- Run Bubble Plot script.
Example 5
Summary: Generates a report by running a Cell Plot script on a data table and retrieving the report object.
Code:
dt = Open("data_table.jmp");
rpt = (dt << run script( "Cell Plot" )) << report;
Code Explanation:
- Open data table.
- Run Cell Plot script.
- Retrieve report object.
Example 6
Summary: Creates a path diagram with customizable styles, thickness, and transparency using the Run Script function in JMP.
Code:
dt = Open("data_table.jmp");
dt << run script( "Fit Life by X" );
Code Explanation:
- Open data table;
- Run "Fit Life by X" script.
Example 7
Summary: Creates a path diagram for SEM analysis, utilizing Run Script and Path Diagram Properties to customize appearance and thickness.
Code:
dt = Open("data_table.jmp");
dt << run script( "Bivariate" );
Code Explanation:
- Open table.
- Run Bivariate script.
Example 8
Summary: Creates a path diagram for logistic regression analysis, allowing users to customize appearance and thickness settings.
Code:
dt under test = Open("data_table.jmp");
obj = dt under test << run script( "Logistic" );
Code Explanation:
- Open table.
- Run logistic script.
Example 9
Summary: Creates a ternary plot from a data table, utilizing the Run Script function to execute the 'Ternary Plot' script.
Code:
dt = Open("data_table.jmp");
tern = dt << Run Script( "Ternary Plot" );
Code Explanation:
- Open table.
- Run ternary plot script.
Example 10
Summary: Creates a mosaic plot in Graph Builder, utilizing the Run Script function to generate a visual representation of data.
Code:
dt = Open("data_table.jmp");
dt << Run Script( "Graph Builder Mosaic Plot" );
Code Explanation:
- Open data table;
- Run graph builder script.
Example 11
Summary: Creates a path diagram with customized styles, thickness, and transparency using Graph Builder in JMP.
Code:
dt = Open("data_table.jmp");
dt << Run Script( "Graph Builder with Pictures" );
Code Explanation:
- Open data table.
- Run named script.
Example 12
Summary: Creates a path diagram with customizable appearance and interactive features, utilizing the Graph Builder with Pictures script.
Code:
dt = Open("data_table.jmp");
rpt = dt << Run Script( "Graph Builder with Pictures" );
Code Explanation:
- Open table.
- Run script named "Graph Builder with Pictures".
Example 13
Summary: Process of setting sex value labels in a data table, utilizing the Run Script function.
Code:
dt = Open("data_table.jmp");
dt << Run Script( "Set Sex Value Labels" );
Code Explanation:
- Open data table.
- Run script for setting labels.
Example 14
Summary: Executes a Discriminant analysis script on a data table, generating a path diagram with customizable styles and properties.
Code:
dt = Open("data_table.jmp");
disc = dt << run script( "Discriminant" );
Code Explanation:
- Open data table;
- Run Discriminant analysis script.
Example 15
Summary: Runs the K Nearest Neighbors algorithm on a data table to identify nearest neighbors of BAD, utilizing Run Script functionality in JMP.
Code:
dt = Open("data_table.jmp");
dt << run script( "K Nearest Neighbors of BAD" );
Code Explanation:
- Open data table;
- Run K Nearest Neighbors script.
Example 16
Summary: Creates a path diagram with customized styles, thickness, and transparency using the Run Script function in JMP.
Code:
dt = Open("data_table.jmp");
dt << run script( "Life Distribution" );
Code Explanation:
- Open data table.
- Run Life Distribution script.
Example 17
Summary: Creates a path diagram with customized styles, thickness, and transparency using the Run Script function in JMP.
Code:
dt = Open("data_table.jmp");
dt << run script( "Logistic" );
Code Explanation:
- Open data table.
- Run logistic script.
Example 18
Summary: Creates a path diagram with customized styles, thickness, and transparency using the Run Script function in JMP.
Code:
dt = Open("data_table.jmp");
dt << run script( "Nonlinear - disjoint linear" );
Code Explanation:
- Open data table.
- Run nonlinear script.
Example 19
Summary: Creates a path diagram from a data table, utilizing the Run Script function to execute a Bivariate script and configure path styles, thickness, and transparency.
Code:
dt = Open("data_table.jmp");
biv = dt << Run Script( "Bivariate" );
Code Explanation:
- Open data table;
- Run Bivariate script.
Example 20
Summary: Executes a script named 'Distribution' in a JMP data table, retrieving and running all scripts from the data table.
Code:
dt1 = Open( "$SAMPLE_DATA/data_table.jmp", invisible );
dt1 << get script;
dt1 << run script( "Distribution" );
Code Explanation:
- Open data table;
- Assign data table to dt1.
- Retrieve all scripts from dt1.
- Run script named "Distribution".
Example 21
Summary: Creates a path diagram from a data table, utilizing the Run Script function to execute a Bivariate script and configure path styles, thickness, and transparency.
Code:
dt = Open( "$SAMPLE_DATA/data_table.jmp", "private" );
biv = dt << Run Script( "Bivariate" );
Code Explanation:
- Open data table.
- Set table visibility to private.
- Run Bivariate script on table.
Example 22
Summary: Creates a bivariate analysis and path diagram from a data table, utilizing the Run Script function to execute the Bivariate script.
Code:
dt = Open( "$SAMPLE_DATA/data_table.jmp", "invisible" );
biv = dt << Run Script( "Bivariate" );
Code Explanation:
- Open data table;
- Run Bivariate script on dataset.
Example 23
Summary: Creates a path diagram for SEM analysis, utilizing the Neural script and Report() function to generate a node graph box with customizable path styles, thickness, and transparency.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "Neural" );
Code Explanation:
- Open table.
- Run neural network script.
Example 24
Summary: Creates a path diagram with customizable styles, thickness, and transparency using the Run Script function in JMP.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "Categorical Several" );
Code Explanation:
- Open data table.
- Run script "Categorical Several".
Example 25
Summary: Process of running a script named 'Fit Definitive Screening' on an open data table, generating a path diagram with customizable appearance and properties.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "Fit Definitive Screening" );
Code Explanation:
- Open data table.
- Run script named "Fit Definitive Screening".
Example 26
Summary: Executes a Structural Equation Modeling (SEM) script using Bollen's 1989 method, hiding latent indicators and displaying path diagram properties.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "SEM: Bollen (1989)" );
obj << Show Latent Indicators( 0 );
Code Explanation:
- Open data table;
- Run SEM: Bollen (1989) script.
- Hide latent indicators.
Example 27
Summary: Executes a structural equation model (SEM) using the Bollen (1989) method, and configures the path diagram to display variances.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "SEM: Bollen (1989)" );
obj << Show Variances( 0 );
Code Explanation:
- Open table.
- Run SEM script.
- Hide variances.
Example 28
Summary: Fits a mixture model to a data table, utilizing the 'Life Distribution' script and generating a report with diagram properties.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "Life Distribution" );
obj << Fit Mixture;
Code Explanation:
- Open data table.
- Run "Life Distribution" script.
- Fit mixture model.
Example 29
Summary: Executes the Functional Data Explorer script, selecting 'B-Splines' and generating a report with data points from the Profiler object.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "Functional Data Explorer" );
obj << "B-Splines"n;
objProfiler = Profiler[1];
objProfiler << Data Points;
rpt = obj << report;
Code Explanation:
- Open data table.
- Run script "Functional Data Explorer".
- Select "B-Splines" option.
- Access Profiler object.
- Show data points.
- Generate report.
Example 30
Summary: Creates a path diagram from a data table, utilizing the Run Script function to execute the Distribution script and configure path styles, thickness, and transparency.
Code:
dt_bc = Open("data_table.jmp");
dis = dt_bc << Run Script( "Distribution" );
Code Explanation:
- Open data table;
- Run Distribution script.
Example 31
Summary: Creates two bubble plots with local data filters and a map, utilizing Run Script() to execute custom scripts.
Code:
dt = Open("data_table.jmp");
bubble1 = dt << Run Script( "Bubble Plot with Local Data Filter" );
bubble2 = dt << Run Script( "Bubble Plot with Map" );
Code Explanation:
- Open table.
- Run bubble plot script.
- Run bubble map script.
Example 32
Summary: Creates a path diagram for a data table, utilizing the Run Script function to execute Distribution and Bivariate scripts.
Code:
dt1 = Open("data_table.jmp");
dis = dt1 << Run Script( "Distribution" );
biv = dt1 << Run Script( "Bivariate" );
Code Explanation:
- Open data table.
- Run Distribution script on table.
- Run Bivariate script on table.
Example 33
Summary: Creates a path diagram for bivariate analysis, utilizing the Run Script function to execute the 'Bivariate' script and generate a report with node graph box properties.
Code:
dt_bc = Open("data_table.jmp");
biv = dt_bc << Run Script( "Bivariate" );
Code Explanation:
- Open data table.
- Run Bivariate analysis script.
Example 34
Summary: Creates a path diagram from a data table, allowing for customization of appearance and thickness.
Code:
dt1 = Open("data_table.jmp");
dis = dt1 << Run Script( "Distribution" );
Code Explanation:
- Open data table.
- Run distribution script.
Example 35
Summary: Creates a 3D scatterplot from a data table, utilizing the Run Script function.
Code:
dt2 = Open("data_table.jmp");
scat = dt2 << Run Script( "Scatterplot 3D" );
Code Explanation:
- Open data table;
- Run 3D Scatterplot script.
Example 36
Summary: Executes Bivariate and Oneway analysis scripts on a data table, leveraging JMP's Run Script functionality.
Code:
dt = Open("data_table.jmp");
biv = dt << Run Script( "Bivariate" );
oneway = dt << Run Script( "Oneway" );
Code Explanation:
- Open data table;
- Run Bivariate analysis script.
- Run Oneway analysis script.
Example 37
Summary: Creates a bubble plot with local data filtering, utilizing Run Script and Bubble Plot functionality in JMP.
Code:
dt = Open("data_table.jmp");
bubble1 = dt << Run Script( "Bubble Plot with Local Data Filter" );
Code Explanation:
- Open data table;
- Run Bubble Plot script.
Run Script using Select Randomly
Summary: Selects and visualizes a subset of data using random sampling, exclusion, and bubble plotting in JMP.
Code:
dt = Open("data_table.jmp");
dt << Select Randomly( 0.8 );
dt << Exclude;
dt << Clear Select;
dt << Select Excluded;
dt << Invert Row Selection;
dt << Exclude;
dt << Run Script( "Bubble Plot Region" );
Code Explanation:
- Open data table.
- Select rows randomly.
- Exclude selected rows.
- Clear row selection.
- Select excluded rows.
- Invert row selection.
- Exclude newly selected rows.
- Run Bubble Plot script.
Run Script using CellPlotBox
Summary: Generates a cell plot report from a data table, sorting labels in ascending order.
Code:
dt = Open("data_table.jmp");
rpt = (dt << run script( "Cell Plot" )) << report;
rpt[CellPlotBox( 1 )] << Sort Ascending;
Code Explanation:
- Open data table.
- Run Cell Plot script.
- Get report object.
- Access first CellPlotBox.
- Sort labels ascending.