Questions tagged [jsl]

JSL is a programming language with C/Java-style syntax embedded in the JMP graphical data exploration and statistics software from SAS Inc.

Syntax

JSL uses a syntax similar to or with semicolons as statement terminators. Unlike C or Java, it does not use braces ({}) to distinguish statement opening or closing blocks, but simply uses parentheses (()) based on the notion that "everything is an expression." Variable and function names are also case-insensitive in most contexts.

For example, JSL does not distinguish between a in an expression and an if statement, e.g.:

// comparable to this C code: result = (x==0) ? -1 : (x+1)
result = If(x==0, -1, x+1);

/* comparable to this C code:
     if(x<0) {
       x -= 3;
     } else if (x==0) {
       x = 0;
     } else {
       x += 3;
     } */
If(x<=0,
   x -= 3
   , /* implicit else if */ x==0,
   x = 0
   , /* implicit else clause */
   x += 3
);

Resources

23 questions
0
votes
2 answers

JSL select Query with keyword and parantheses

I am trying to select specific values from a column in JSL, but there is an issue. The column name is: Sum(ow_blah) And I would like to: select where(Sum(ow_blah) == 0) Unfortunately, the combination of the keyword Sum and parentheses have led to…
0
votes
1 answer

Studentized residuals in JSL

How can I add studentized residuals to an already fitted model I have in the JMP table? I have several tables for which I manually open the particular script and do Save Columns--> Studentized Residuals. Any help will be appreciated. Thank you
PowerToYou
  • 23
  • 9
0
votes
1 answer

How to make the subset data table with different names

I can generate all subset data tables from my big dataset. But I face one problem in JMP — it can't have two data tables with same name. The name can be changed for second, third, and etc. Does anyone know how to make different data tables have…
blue
  • 1
  • 4
0
votes
1 answer

How to store a list or a number into empty array in jsl?

I face a problem on how to store a list or a number into an empty array, below is my code : For( i = 1, i <= N Items( S ), i++, dt:Family Device << set name( "family device" ); dt << Select Where(Starts With( dt:family device, S[i] ) )…
Shi Jie Tio
  • 2,479
  • 5
  • 24
  • 41
0
votes
1 answer

pull out r squared from fit model to table in JSL JMP

I'm trying to figure out how to use JSL to write some of the analysis of variance variables values to a table in JMP. My idea is to write a script that runs different types of models with different parameters with R^2 and RSME logging to a table…
Austin
  • 75
  • 1
  • 9
0
votes
1 answer

JMP Scripting: Why doesn't my column data get sent into a Function?

I am creating a JSL script for some of my datatables and need my function to act on a column. I can get the function to act on the column during a plotting event, but not with standard operations. Here's an example that works. This acts on the…
dthor
  • 1,749
  • 1
  • 18
  • 45
0
votes
1 answer

Extract covariance matrix nonlinear fit

Using a JSL script, I would like to extract the covariance matrix of a nonlinear model. I have a 4PL curve. But when I request: m["Logistic 4P"]["Parameter Estimates"]["Covariance of Estimates"]["Reference"][""]; It is said that it is an outlinebox…
PerrySun
  • 187
  • 1
  • 1
  • 8
0
votes
1 answer

JMP 9 automation bug -- workarounds?

I'm using JMP 9.0.3 64-bit under Windows 7 and automating it from Python (EDIT: I've confirmed that the bug can equally be reproduced with VBScript automation, and still exists in JMP 11.0.0). My automation code is based on the JMP 9 Automation…
Dan Lenski
  • 76,929
  • 13
  • 76
  • 124
1
2