cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Learning Library

Choose Language Hide Translation Bar

Latest Posts

  • Objects and Messages

    Now let's discuss the concept of objects. Many of the capabilities of JMP are available to your script through built-in objects. Every JMP object knows how to perform certain actions or tasks. And some examples of JMP objects are data tables, data columns, platforms, and even JMP itself. Now in order to use an object in your script, the script first needs to instantiate the object, or c...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:23 AM
    771 views | 0 replies
  • Introduction to Lists

    An important data structure in JMP is a list, which is a general-purpose storage container that can store any number of items. The items can be any type of data such as numbers, character strings, object references, or other lists, and the items in the list don't need to be the same type. You can create a list with the List function, or with the curly brackets operator. Items in a list ...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:23 AM
    2602 views | 0 replies
  • Working with Lists

    Lists are dynamic. You can easily add items to or remove items from a list as necessary. You use the Insert function or the Insert Into function to add items to a list. By default, the items are added at the end of the list. Optionally, you can include an argument to specify the position of the item you're adding. The Insert function returns a new list with the added item but doesn't ch...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:23 AM
    2106 views | 0 replies
  • Introduction to Matrices

    Another useful data structure is a matrix, which is a rectangular array or table of numeric values or missing values. You can use a matrix to store a single number, a column of numbers, (sometimes called a column vector,) a row of numbers, (or row vector,) or an entire table of numbers. A matrix can be empty -- that is, have no rows or columns. An empty matrix can be useful for collecti...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:23 AM
    580 views | 0 replies
  • Working with Matrices

    You can use the Matrix function to create a matrix. And this function takes a list of lists as its argument, where each sub-list specifies a row. You can also use the square brackets operator to create a matrix. When you use this operator, you enter the values directly, without using lists. Instead, you separate the values in different rows with commas, and the values in different colum...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:23 AM
    1398 views | 0 replies
  • 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...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:23 AM
    4220 views | 2 replies
  • Style Tips for Scripts

    So, although your scripts follow a strict syntax, there's no strict style imposed by JMP in the scripting language. Remember that JMP ignores whitespaces and letter case. So, style, then, is important for legibility. Let's take a look at an example. The script shown here follows the syntax rules and will run correctly. But the style -- or lack of style -- make it difficult to read and u...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:23 AM
    726 views | 0 replies
  • Overview of Iteration

    Scripts are procedural. In other words, JMP evaluates a script beginning with the first line and continuing until the last line. Some scripts require JMP to repeat an action multiple times. But you don't repeat the code for that action in your script for every time you want JMP to perform the action. Instead, you use special iteration functions to repeat that portion of the code. In som...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    761 views | 0 replies
  • Using the For Function

    So, the For function provides the most general form of iteration. This function has four required arguments, and each one is a JSL expression. And as usual, these four arguments are separated by commas. JMP evaluates the first argument to the For function only once. Generally, you use this first argument to initialize a variable that you can use as a counter, or index, in each iteration...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    1439 views | 0 replies
  • Using the While Function

    Another way to iterate is with the While function. This function takes only two arguments: the test, and the body. So, if you want to use a counter, index, or flag variable in either argument, you need to initialize those before you call the While function. JMP evaluates the first argument and interprets it as a Boolean result in order to determine if the iteration should continue. If t...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    979 views | 0 replies
  • Working with Expressions

    Expressions are an important concept, and an integral part of the JMP scripting language. But what is an expression? Well, it's a section of JSL code that accomplishes a task. JSL expressions hold data, manipulate data, and send commands to objects. An expression can be defined as any combination of variables, constants, and functions or operators that can be evaluated. It might be as s...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    1886 views | 0 replies
  • Debugging and Profiling Your Script

    So, the Script Editor is a really powerful tool for both reading and writing your scripts. You can also evaluate just one line of code or a selection of code to verify the behavior as you develop your script. And you can hover over a variable name to determine its current contents. You can also use the JMP Log to examine the results of evaluation or any error messages. The Debugger is a...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    1032 views | 0 replies
  • Iteration in Scripts

    So this demonstration illustrates how to use the For function for iteration. And so far, we've used the Script Editor with the log to test our scripts and observe the results. But now we want to look at that using the debugger. So I have a script editor window open, and I'm going to start by typing Names Default to Here. And I'll put that Boolean I'm not adding spaces right now. I'm goi...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    2015 views | 0 replies
  • Using Row Functions

    So, you learned about the For function, which you can use for practically any kind of iteration. There's also a special function for iterating down the rows of the data table, and that's the For Each Row function. This function only requires one argument, which is the body or code that you want JMP to evaluate row-wise. For Each Row iterates down the rows of the data table until it come...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    1529 views | 0 replies
  • Using the Summation Function

    One special case of iteration is the algebraic sum. The Summation function requires three arguments. The first argument is evaluated before the summation begins. It's generally used to initialize a counter or index variable. The second argument specifies a limit for the counter or index. And the third argument is the quantity to be added to the sum. For example, calling the Summation fu...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    925 views | 0 replies
  • Using the Product Function

    Another special case of iteration is the algebraic product. The Product function is similar to the Summation function, and also requires three arguments. The first argument is evaluated before the multiplication begins, and is generally used to initialize a counter or index variable. The second argument specifies a limit for the counter or index. And the third argument is the quantity t...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    449 views | 0 replies
  • Iterating Across Rows

    In this demonstration, we'll see how to iterate across rows using the for each row function. So I'm going to get the Big Class data from the script in section And I'm going to write a script that's going to create a new column with the BMI, or Body Mass Index, values. And I'll use the for each row function to populate that. And the body mass index is calculated by multiplying the weight...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    912 views | 0 replies
  • What Is Conditional Action?

    Remember, scripts are procedural. JMP begins by evaluating the first line and continues through until it ends with the last line. This kind of evaluation makes sense for the parts of your script that always have to be evaluated. This evaluation is unconditional. But some parts of your script should only be evaluated under specific cases. This evaluation is conditional. And your script h...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    527 views | 0 replies
  • Using the If Action

    The most general way to test conditions is to use the If function. Let's take a look at it in the context of iterating down the rows of a data table to populate a column called "grade" using the For Each Row function. In fact, we'll look at each of the conditional functions in the context of the For Each Row function. Now, the number of arguments for the If function varies, but at least...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    2866 views | 0 replies
  • Example: Binning Data by Using the If Function

    So let's look at an example of using the If function. Suppose you have data from a public school in the US with grade levels for each student. Some grade levels are grouped into schools, and you want to use the numeric data to group the students by school. This is an example of binning data, where the bins represent ranges of values, and the If statement is an easy way to assign the dif...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    470 views | 0 replies
  • Using Boolean Functions

    In this demonstration, we'll take a look at Boolean functions, as well as the If function I'm going to get a script editor window. And again, the keyboard shortcut is Ctrl+T or you can go to the File menu, use the toolbar. Many different ways to get that new Script Editor window. And let me bring the log in front of the journal. Back in the Script Editor window, I'm going to type the co...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    2048 views | 0 replies
  • Using the Match Function and the Choose Function

    It's common to have conditions that are limited to specific values, and these values could be numeric or character data. You can use the Match function in this situation. The Match function is a specialized conditional function that takes three or more arguments. The first argument is evaluated and used as the value to be matched. The second argument is evaluated and interpreted as a Bo...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    2781 views | 0 replies
  • Using the Match and Choose Functions

    In this demonstration, we'll see how to use the match and choose conditional functions. So in the course journal, in section I'm going to click on Concrete Strength Data. And so the Concrete Strength data includes this column called Concrete Type, which indicates the brand of concrete mix and whether it was reinforced or not, if it was just standard during whatever this test was. And le...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    1818 views | 0 replies
  • Working with Data Tables

    Working with data tables is, of course, an important part of working with JMP. The data table enables JMP to access your data through various analysis and graphing platforms. You can enter your data directly into a JMP data table, and you can save that data table for future access. Or, you might have data saved in a different file format, or in a relational database. In those cases, you...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:22 AM
    1207 views | 0 replies
  • Working with File Paths

    In order for your script to open your data table, it has to tell JMP where to find the table. So, you need to understand how file paths work. The path to a file starts from the root (or disk drive) and continues with the sequence of folders that leads to the folder where the file is saved. So, the sequence reflects the series of folders that JMP has to navigate, starting at the root, in...

    ruthhummel ruthhummel
    Learning Library |
    Apr 8, 2025 6:21 AM
    2448 views | 0 replies