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.

430 Formula Functions Reference Appendix B<br />

Random Functions<br />

Product (Π)<br />

Evaluates for an explicit range of values in a column, as given by the summation indices, as opposed to all<br />

other statistical functions (except Summation), which always evaluate on every row. Product uses the<br />

notation shown in the formulas on the right in Figure B.13. To calculate a product, replace the missing<br />

body term with an expression containing the index variable j. Product repeatedly evaluates the expression<br />

for i = 1, i = 2, through i = n and multiplies the nonmissing results together to determine the final result.<br />

You can replace NRow(), the number of rows in the active spreadsheet and the index constant, i, with any<br />

expression appropriate for your formula.<br />

For example, the expression second product example in Figure B.13 calculates i! (each row number’s<br />

factorial).<br />

Figure B.13 Examples of the Product Function<br />

Minimum and Maximum<br />

Return the minimum and maximum value, respectively, from the list of nonmissing arguments that you<br />

specify.<br />

N Missing<br />

Counts the number of missing values in the list of arguments that you specify.<br />

Desirability<br />

Are smooth piecewise functions that are crafted to fit the control points. The minimize and maximize<br />

functions are three-part piecewise smooth functions that have exponential tails and a cubic middle.<br />

The target function is a piecewise function. It is a scale multiple of a normal density on either side of the<br />

target (with different curves on each side), which is also piecewise smooth and fit to the control points.<br />

Random Functions<br />

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

the specified distribution. Each time you click Apply in the Formula Editor window, these functions<br />

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

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

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

generators are verified to pass all the DIEHARD tests as documented in Marshalled (1996).

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

Saved successfully!

Ooh no, something went wrong!