14.03.2014 Views

Download Jmp User Guide

Download Jmp User Guide

Download Jmp User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 9 Formula Editor 311<br />

Using Formula Editor Options<br />

5 Click column B in the Table Columns list.<br />

6 Click the addition button ( ) in the formula editor keypad.<br />

7 Click column C in the Table Columns list.<br />

9Formulas<br />

Because the order of precedence determines which arguments are affected by each functions, it also<br />

affects the grouping of expressions. Select functions in the formula to verify how the<br />

order-of-precedence rules have been applied.<br />

Structuring Formulas for Efficient Evaluation<br />

Usually, it is not necessary to structure formulas with efficient evaluation in mind. Most formulas<br />

evaluate almost instantaneously regardless of their structure. This is because statistical functions and<br />

constant expressions are evaluated only once when a column’s values are calculated.<br />

However, when you are creating conditional expressions, keep in mind that Match evaluates faster and<br />

uses less memory than an equivalent Condition function, If. (Note that Match ignores trailing spaces,<br />

while If does not.)<br />

Consider two formulas for predicting a child’s height from his age shown in Figure 9.22. In each case<br />

there is a base height of 58.125 inches to which a quantity is added depending on the value of the age<br />

variable.<br />

Figure 9.22 The Match Conditional Evaluates Faster Than the If Function<br />

The Match conditional evaluates faster than the If function because the age variable is evaluated only<br />

once for each row in the data table. The If condition must evaluate the age variable at each If clause for<br />

each row until a clause evaluates as true.<br />

Using Formula Editor Options<br />

There are several options the formula editor makes available to you as you create formulas. The<br />

following sections discuss each of these options.

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

Saved successfully!

Ooh no, something went wrong!