14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

416 Formula Functions Reference Appendix B<br />

Conditional Functions<br />

Not !<br />

Evaluates as 1 when its argument is false. Otherwise, Not evaluates as 0. When you apply the Not function,<br />

use parentheses where necessary to avoid ambiguity. For example, !(weight==64) can be either true or<br />

false (either 1 or 0), but (!weight)==64 is always false (0) because Not can return only 0 or 1. Expressions<br />

such as !(weight==64) can also be entered as weight != 64.<br />

Interpolate<br />

Linearly interpolates the y-value between two points, x1, y1 and x2, y2 that corresponds to the arguments<br />

that you give. You can insert additional pairs of x, y arguments with the insert key. Interpolate finds the pair<br />

of x, y points that correspond to the x-value and completes the interpolation.<br />

Step<br />

Is like Interpolate except that it returns the y-value corresponding to the greatest x-value less than or equal to<br />

the x and y arguments. That is, it finds the corresponding y for a given x from a step function rather than a<br />

linear fit between points. Like Interpolate, you can have as many x and y argument pairs as you want.<br />

Figure B.10 Example of Interpolate<br />

For<br />

Repeats the statements in the body argument as long as the while condition is true. The init and next<br />

control the iterations.<br />

While<br />

Repeatedly tests the expr condition and executes the body until expr is no longer true.<br />

Break, Continue<br />

Break stops execution of a loop completely and continues to the statement following the loop. Continue<br />

ends the current iteration of a loop and begins the loop at the next iteration.<br />

Both are used in For, While, and For Each Row loops.<br />

Stop<br />

Immediately stops a script that is running.

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

Saved successfully!

Ooh no, something went wrong!