cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.

Introduction to the JMP Scripting Language

Choose Language Hide Translation Bar

Featured Items

Latest Posts

  • Using Lists and Matrices

    So this demonstration is going to look at some of the basic features of lists and matrices. So I'm going to start with lists. And I'm going to get a new script editor window. So again, the keyboard shortcut is Ctrl+T. And I will resize and rearrange that. Let me go ahead and bring the log in front of the journal. And I'm going to create a variable I'll call my list. And I'll assign that the result...

    ruthhummel ruthhummel
    2685 views | 2 replies
  • Using Display Boxes

    In this demonstration, we'll take a look at how the display boxes are organized in the report layer, and see how we can access the contents of those display boxes. So in section of the course journal, I'll click on Cure Time Data. So I'm just going to do a simple correlation analysis and simple linear regression with the Cure Time data with two of my Cure Time columns in the bivariate platform. An...

    ruthhummel ruthhummel
    1882 views | 1 replies
  • Working with Columns and Rows

    This demonstration is going to illustrate how to manage data columns and data table rows. And I'll use a script to make a new data table with one column to start. So in the course journal in section I'm going to click Make New Data Table and Column. And you can see that we're using the new table function. We're going to store the data table object reference that this creates in the variable dt. An...

    ruthhummel ruthhummel
    3238 views | 1 replies
  • Creating a Custom Report

    Learn more in our online course with
    videos, practice exercises & quizzes.
    Select and take the lessons in any order.
    Introduction to the JMP Scripting Language

      In this demonstration, we'll use a pre-written script to see how to make a custom report. So in the course journal, in section there's a script called NOx data for the nitrogen oxide data. And we have six different preparations. And then...

    ruthhummel ruthhummel
    2062 views | 0 replies
  • Using the New Window Function

    So, suppose you want to create a report that includes objects or display boxes that aren't part of a standard set of display boxes in a JMP platform, or maybe you want to create a report using values your script harvested from a JMP platform, but organized differently. Well, you use the New Window function to create a new window and then construct display boxes inside that window. The New Window f...

    ruthhummel ruthhummel
    1630 views | 0 replies
  • Display Boxes with Subscripts

    Let's talk about how you access the nested display boxes within the display tree. Well, just like you use subscripts with lists and matrices, you use subscripts with display tree objects. First, you obtain a reference to the report layer from the analysis layer. Then, you use a subscript, or series of subscripts, to identify the nested object. Just like subscripts for lists and matrices, they appe...

    ruthhummel ruthhummel
    545 views | 0 replies
  • Display Boxes

    In built-in JMP platforms, the report layer is usually organized as an outline, but there are other kinds of organization available. For example, you could organize the information in tabs or panels. The display boxes in the report layer are nested-- they often contain, or are contained within, other display boxes. This nested or branched structure is called the display tree, and the display box a...

    ruthhummel ruthhummel
    1358 views | 0 replies
  • Understanding the Report Layer

    So, you need to understand the report layer of built-in JMP platforms if you want to design and make your own custom reports using elements of those platforms. Your custom report can include simple copies, or clones, of platform elements, as well as new tabular or graphical displays based on results your script harvests from a platform. These custom windows can report new results and capabilities....

    ruthhummel ruthhummel
    685 views | 0 replies
  • Overview of Display Boxes

    Remember that messages to the platform object are initially directed to the analysis layer. These messages can request additional analyses or options, such as those found in the red triangle menus. You can also send messages to the report layer in order to access information in numerical reports or graphical presentations. In some cases, your script might harvest the results in a platform and stor...

    ruthhummel ruthhummel
    509 views | 0 replies
  • Scripting Analyses

    In this demonstration, we'll see how to script the analyses performed by some of the commonly-used platforms in JMP. In the journal in section I'll click on Concrete Strength and Humidity Data, and this is the data set I'm going to use for all of the examples in this demonstration. So we've got the type of concrete mix, the resulting concrete strength, and the ambient humidity when the concrete dr...

    ruthhummel ruthhummel
    884 views | 0 replies
  • Enhancing Interaction with Platforms

    Your script can enhance the analysis by adding a column switcher or a local data filter to the platform used by your script. So, you can include the Local Data Filter argument or the Column Switcher argument in the launch message to add these features when the platform is launched. For example, the code shown here uses both the Local Data Filter and the Column Switcher arguments as part of the pla...

    ruthhummel ruthhummel
    429 views | 0 replies
  • Using the BY Role with Messages

    Just about every platform in JMP includes an optional analysis role called the BY role. You can use this when you want to obtain separate analyses or graphs for every level or group in a column. For example, suppose you're working with the Big Class data table, and you want a separate bivariate fit of weight by height for each of the different age groups. When you put age in the BY role, the launc...

    ruthhummel ruthhummel
    468 views | 0 replies
  • Introduction to the Report Layer

    The report layer of a platform also responds to messages, but you have to access it through a separate object reference. You obtain a reference to the report layer by sending the Report message to the analysis layer, or by calling the Report function with the reference to the analysis layer as its argument. So there are two examples shown here. In the first one, you send a Report message to the an...

    ruthhummel ruthhummel
    570 views | 0 replies
  • Launching the Analysis Layer

    To launch a platform, you send a message to a data table. In return, you receive a reference to the analysis layer object. You can save this reference for later use. Let's take a look at an example. The message name identifies the platform. So in this example, the message name indicates the Bivariate platform. The arguments to the message cast columns into analysis roles and can specify platform o...

    ruthhummel ruthhummel
    486 views | 0 replies
  • Overview of JMP Platforms

    JMP provides your analyses and plots through objects called platforms. Examples of platforms include Distribution, Bivariate, Fit Least Squares, and Graph Builder. JMP platforms combine related functionality and procedures. And you launch platforms with either the default settings, or with user preferences. After a platform is launched, a user can interact with it to further refine their analysis....

    ruthhummel ruthhummel
    615 views | 0 replies
  • Stacking and Concatenating

    This demonstration shows two more commands from the Tables menu-- the Stack and Concatenate commands. So in section of the journal, I'm going to click on Cure Time Data again. And the organization of this table is that each cure time sample has its own separate column. And if I wanted to, for example, compare the averages of the five different cure times, that kind of analysis would want the data ...

    ruthhummel ruthhummel
    2158 views | 0 replies
  • Concatenating Tables

    What if you want to add one or more data tables to an existing table? For example, maybe the raw data are stored in different tables for different groups, or for different periods of data collection, and you want to have a single table with all the rows together. You can send the Concatenate message to a data table to create a new table that has the data from one or more other data tables appended...

    ruthhummel ruthhummel
    792 views | 0 replies
  • Stacking Columns

    Sometimes, you might need to combine the values from two or more columns into one column. This is known as stacking columns. The raw might data might be structured in such a way that there's a separate column for each group or category of a variable -- for example, the calories in beef versus poultry hot dogs. In JMP, if you want to compare the average calories of these two groups, you need one co...

    ruthhummel ruthhummel
    1085 views | 0 replies
  • Selecting and Subsetting Data

    So in this demonstration, we'll look at selecting specific rows and using the subset command, which interactively is found in the Tables menu, to pull out a subset of the data table. So in the course journal in section I'm going to click on Ski Lodge Temperature Data. And this is a wide data table, but fairly short. And so our scenario here is that we have a ski resort that has a weather station a...

    ruthhummel ruthhummel
    3185 views | 0 replies
  • Overview of Tables

    Now, in addition to storing your data and its metadata, the data table is responsible for data preparation using commands in the Tables, Rows, and Columns menus, or their equivalent messages in JSL. The data table is also responsible for launching the platforms for analysis and graphing. Sometimes, you only want to analyze or plot a specific subset of the data values that are stored in your data t...

    ruthhummel ruthhummel
    1352 views | 0 replies
  • Using Matrices

    So this demonstration is going to illustrate some of the ways that you can use matrices. So in the course journal in section I'm going to click on Cure Time Data. And let's suppose that we need to find the average cure time for each date. So we'll add up all of the cure time values in each row, and dividing by the number of samples. And I'm going to use matrices to perform this computation. This i...

    ruthhummel ruthhummel
    1608 views | 0 replies
  • Matrix Utility Functions

    A useful utility function for matrices is the Loc function. This function takes a Boolean matrix as its argument, and returns a matrix with the locations, or positions, of all of the true elements in the matrix. Now, remember that JMP interprets zero as false and non-zero values as true. So if the argument supplied is simply a matrix, or a variable storing a matrix, the Loc function returns a matr...

    ruthhummel ruthhummel
    643 views | 0 replies
  • Obtaining a Data Matrix

    You can get numeric data from a data column by sending either the Get Values message or the Get As Matrix message to the column. The result of both of these is a column vector, or, a matrix that contains only a single column. You can also get the numeric data from all the numeric data columns in a data table by sending the Get As Matrix message to the data table. If there are columns with non-nume...

    ruthhummel ruthhummel
    696 views | 0 replies
  • Overview of Data Matrices

    So you've seen that data tables and columns are really powerful JMP objects that store data and have a lot of other responsibilities. They have extensive message protocols that make most actions easy to accomplish. But they also use a lot of overhead: data manipulation can require a lot of time, and sending messages can require a lot of code. Matrices, on the other hand, also store data, and they'...

    ruthhummel ruthhummel
    400 views | 0 replies
  • Creating a New Data Table

    You use the New Table function to create a new data table. Because there are no required arguments, you can create an empty, untitled data table by just using the function with nothing in the parentheses. But, there are several optional arguments that you'll typically use. The first unnamed argument is a character string that sets the name of the data table. There are also named arguments, includi...

    ruthhummel ruthhummel
    726 views | 0 replies