14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

218 Formula Editor Chapter 7<br />

Use Formula Editor Options<br />

Ignore Errors<br />

Once you construct a formula and click OK, <strong>JMP</strong> checks behind the formula for error and alerts you of any<br />

errors that it finds. An error message appears for each error and asks whether you want to ignore further<br />

errors.<br />

Sometimes you might want to suppress error messages while a formula is under development. For example,<br />

you might want the evaluated values for some rows without seeing an error message for each row that causes<br />

errors.<br />

To have <strong>JMP</strong> ignore any errors:<br />

1. Create a formula.<br />

2. Click the red triangle menu above the keypad and select Ignore Errors.<br />

View 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 Evaluate<br />

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

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

1. While in the Formula Editor, select the expression that you want to know about.<br />

2. Right-click the selected expression.<br />

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

View 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 <strong>JMP</strong> Scripting Language (JSL). The entire formula (or any of its terms) appears in text mode<br />

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

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 formula<br />

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

standardization of weight is (:weight – Col Mean(:weight)) / Col Std Dev(:weight). To enter<br />

an If statement in text form, add pairs of arguments for each If/Then clause in the statement, and a single<br />

last argument for the else clause if needed. In text form, the If statement in Figure 7.8 looks like this:<br />

If(:total!=0, (:count/:total)*100, 0).<br />

Figure 7.8 An If Statement in Formula Mode

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

Saved successfully!

Ooh no, something went wrong!