14.03.2014 Views

Download Jmp User Guide

Download Jmp User Guide

Download Jmp User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 9 Formula Editor 315<br />

Editing Formulas<br />

Viewing a Formula’s Values from the Formula Editor<br />

While in the Formula Editor, you can see the value of any expression within a formula with the<br />

Evaluate command. For column variables, you get the value at row 1. This is also true for parameters<br />

and expressions that evaluate to a constant value. To view values:<br />

1 While in the formula editor, select the expression you want to know about.<br />

2 Right-click (Ctrl-click on the Macintosh) the selected expression. This displays the menu in<br />

Figure 9.28.<br />

3 Select Evaluate. The current value of the selected expression appears in a yellow box until you move<br />

the cursor.<br />

Figure 9.28 Right-Click to See the Value of an Expression<br />

9Formulas<br />

Viewing a Formula in JSL<br />

You have the option of entering or changing any part of a formula in text mode. Text mode displays the<br />

formula in JMP Scripting Language (JSL). The entire formula (or any of its terms) appears in text<br />

mode when you double-click the white space inside the boxed formula area. The elements of that box<br />

appear as plain text and you can then edit the formula as you would in any text editor.<br />

Any element of a formula can be displayed as a scripting command and then edited. After editing<br />

formula scripting commands, click outside the formula to see its formatted form. For example, the text<br />

for the standardization of weight is (:weight – Col Mean(:weight)) / Col Std<br />

Dev(:weight). To enter an If statement in text form, add pairs of arguments for each If/Then clause<br />

in the statement, and a single last argument for the else clause if needed. In text form, the If statement<br />

in Figure 9.29 looks like this: If(:total!=0, (:count/:total)*100, 0).<br />

Figure 9.29 An If Statement in Formula Mode<br />

Editing Formulas<br />

If you need to change a formula after you have exited the formula editor, right-click (Ctrl-click on the<br />

Macintosh) the column name in the data grid and select Formula.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!