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.

302 Formula Editor Chapter 9<br />

Using Functions<br />

To build a formula that contains a comparison function<br />

1 Open the formula editor by right-clicking a column name in the data grid and selecting Formula.<br />

2 Select an expression in the formula editing area by clicking it. (It is selected when there is a red<br />

outline around it.)<br />

3 Click the menu on the function browser and select Comparison, as shown in Figure 9.13. The<br />

comparison functions now appear in the list below the menu.<br />

Figure 9.13 Select Comparison from the Functions (grouped) List<br />

4 Select which function to insert in the formula. For descriptions of each function, see “Comparison<br />

Functions,” p. 467.<br />

5 Enter values in the boxes that represent a and b.<br />

Using Conditional Clauses<br />

You can include conditional expressions (called conditionals for short) in your formulas. These<br />

expressions let you build a sequence of clauses paired with result expressions. Constructing a sequence<br />

of clauses is the way you conditionally assign values to cells in a calculated column. Conditionals follow<br />

these rules:<br />

• When no clause is true, the formula editor evaluates the result expression that accompanies the else<br />

clause.<br />

• All result expressions in a conditional expression must evaluate to the same data type.<br />

• A missing term matches any data type.<br />

• By definition, expressions that evaluate as zero are false.<br />

• If an expression evaluates as missing, no clauses are executed and missing is returned. All other<br />

numeric expressions are true.<br />

To build a formula that contains conditional clauses<br />

1 Open the formula editor by right-clicking a column name in the data grid and selecting Formula.<br />

2 Select an expression in the formula editing area by clicking it. (It is selected when there is a red

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

Saved successfully!

Ooh no, something went wrong!