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

Examples and Tutorials<br />

Figure 9.38 Col Mean<br />

9Formulas<br />

6 Select the entire expression. The red box should now enclose the whole formula.<br />

7 Click the division button ( ) in the keypad. The result gives a selected missing denominator for<br />

the whole expression.<br />

8 Click weight again from the column selector list. It becomes selected in the denominator.<br />

9 Select Col Std Dev from the Statistical list. The completed formula should look like that in<br />

Figure 9.39.<br />

10 Close the formula editor by clicking OK. The new column fills with values. When a weight value<br />

changes, the calculated Standard Weight value automatically recalculates.<br />

Figure 9.39 Building a Formula<br />

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

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

and Xsqrd. (See “Using Local Variables,” p. 289.) Then assign them to the numerator and the<br />

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

Figure 9.40. (Statements in the formula editor are actually JSL programming statements. Multiple<br />

statements in a formula must be separated by a semicolons.) The slope computation is simplified to XY<br />

divided by Xsqrd.

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

Saved successfully!

Ooh no, something went wrong!