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.

Chapter 7 Formula Editor 223<br />

Examples and Tutorials<br />

8. Click weight again from the column selector list.<br />

It becomes selected in the denominator.<br />

9. Select Col Std Dev from the Statistical list.<br />

The completed formula should look like that in Figure 7.10.<br />

Figure 7.10 Building a Formula<br />

10. Close the Formula Editor by clicking OK.<br />

11. Close the Column Info window by clicking OK.<br />

In the data table, the new Standard Weight column fills with values. When a weight value changes, the<br />

calculated Standard Weight value automatically recalculates.<br />

Use Local Variables in a Formula<br />

Suppose you want to compute the slope in a simple linear regression of y on x using the standard formula<br />

shown in Figure 7.11. One way to do this is to create two local variables, and name them XY and Xsqrd.<br />

(See “Use Local Variables” on page 207.) Then assign them to the numerator and the denominator<br />

calculations of the slope formula. Delimit each assignment with a semicolon, as shown in Figure 7.11.<br />

(Statements in the Formula Editor are actually JSL programming statements. Multiple statements in a<br />

formula must be separated by a semicolons.) The slope computation is simplified to XY divided by Xsqrd.

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

Saved successfully!

Ooh no, something went wrong!