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.

306 Formula Editor Chapter 9<br />

Using Functions<br />

Generating Random Numbers<br />

You can create formulas that generate real numbers by effectively “rolling the dice” within the<br />

constraints of a specified distribution. Each time you click Apply in the formula editor window, these<br />

functions produce a new set of random numbers.<br />

Note: Random numbers are generated using the Mersenne-Twister technique. This technique has a<br />

period length of 2 19937 -1. For details about the generators, see Matsumoto and Nishimura (1998). The<br />

new generators are verified to pass all the DIEHARD tests as documented in Marshalled (1996).<br />

To create a formula containing a random number<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 Random, as shown in Figure 9.18. The random<br />

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

Figure 9.18 Select Random from the Function Browser List<br />

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

Functions,” p. 485.<br />

Using Dates and Times<br />

JMP stores dates and times in numeric columns using the Macintosh standard of the number of seconds<br />

since January 1, 1904. When a column has date values, you can assign a date format to that column by<br />

double-clicking a column name and selecting Date or Time from the Format menu. See “Numeric<br />

Format Options,” p. 63, for details.<br />

To use dates and times in a formula:<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!