Row
Example 1
Summary: Selects and excludes specific rows in a data table, allowing for targeted analysis and visualization.
Code:
dt = Open("data_table.jmp");
r = dt << go to row( 1 );
r << hide;
dt << clear select();
r = dt << select rows( [2, 3, 4] );
r << exclude;
Code Explanation:
- Open data table.
- Go to first row.
- Hide first row.
- Clear all selections.
- Select rows 2, 3, 4.
- Exclude selected rows.
Example 2
Summary: Selects and excludes rows in a data table, followed by running a script to generate Mean and Range Charts.
Code:
dt = Open("data_table.jmp");
r = dt << go to row( 1 );
r << hide;
dt << clear select();
r = dt << select rows( [2, 3, 4] );
r << exclude;
dt << run script( "Mean and Range Charts" );
Code Explanation:
- Open data table.
- Go to first row.
- Hide first row.
- Clear row selection.
- Select rows 2 to 4.
- Exclude selected rows.
- Run "Mean and Range Charts" script.
Example 3
Summary: Runs data table operations to select and exclude specific rows, while clearing all previous selections.
Code:
dt = Open("data_table.jmp");
r = dt << go to row( 4 );
r << hide;
dt << clear select();
r = dt << select rows( [1, 2, 3] );
r << exclude;
Code Explanation:
- Open data table.
- Go to row 4.
- Hide row 4.
- Clear all selections.
- Select rows 1, 2, 3.
- Exclude selected rows.
Example 4
Summary: Runs data table operations to select and exclude specific rows, then runs a script to generate Mean and Range Charts.
Code:
dt = Open("data_table.jmp");
r = dt << go to row( 4 );
r << hide;
dt << clear select();
r = dt << select rows( [1, 2, 3] );
r << exclude;
dt << run script( "Mean and Range Charts" );
Code Explanation:
- Open data table.
- Go to row 4.
- Hide row 4.
- Clear all selections.
- Select rows 1, 2, 3.
- Exclude selected rows.
- Run Mean and Range Charts script.
Example 5
Summary: Opens and configures a data table in JMP, setting the window size to 800x500 and row index to 40.
Code:
dt = Open("data_table.jmp");
dt << set window size( 800, 500 );
Row() = 40;
Code Explanation:
- Open data table;
- Set window size to 800x500.
- Set row index to 40.
Example 6
Summary: Runs the navigation to specific rows in a data table, setting the current row to 40, then 1, and finally 6.
Code:
dt = Open("data_table.jmp");
Row() = 40;
Row() = 1;
Row() = 6;
Code Explanation:
- Open data table.
- Set current row to 40.
- Set current row to 1.
- Set current row to 6.
Example 7
Summary: Selects row 3 in a data table, allowing for efficient analysis and exploration.
Code:
Open("data_table.jmp");
Row() = 3;
Code Explanation:
- Open data table;
- Set current row to 3.
Example 8
Summary: Opens a data table and sets the current row to 3.
Code:
dt = Open("data_table.jmp");
Row() = 3;
Code Explanation:
- Open data table;
- Set current row to 3.
Example 9
Summary: Opens a data table and sets the current row to 10.
Code:
dt = Open("data_table.jmp");
Row() = 10;
Code Explanation:
- Open data table;
- Set current row to 10.
Row using Run Script
Summary: Fits a model to data, visualizing residuals, and performing Durbin-Watson tests to evaluate model quality.
Code:
dt = Open("data_table.jmp");
dt << clear row states;
dt << select where( :height < 60 );
s = dt << get excluded rows;
dt << Exclude;
obj1 = dt << Run Script( "Fit Model" );
obj1 << Plot Residual by Predicted( 1 );
obj1 << Plot Residual by Row( 1 );
obj1 << Plot Studentized Residuals( 1 );
rpt1 = obj1 << report;
obj1 << Durbin Watson Test( 1 );
dw = rpt1["Durbin-Watson"][Table Box( 1 )] << get as matrix;
Code Explanation:
- Open data table;
- Clear row states.
- Select rows with height < 60.
- Get excluded rows.
- Exclude selected rows.
- Run Fit Model script.
- Plot residual by predicted.
- Plot residual by row.
- Plot studentized residuals.
- Extract Durbin-Watson test result.