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.

Appendix B Formula Functions Reference 415<br />

Conditional Functions<br />

IfMin<br />

Evaluates the first of each pair of arguments and returns the evaluation of the result expression (the second<br />

of each pair) associated with the minimum of the expressions. If more than one expression is the minimum,<br />

the first minimum is returned. If all expressions are missing and a final result is not specified, missing is<br />

returned. If all expressions are missing and a final result is specified, that final result is returned. The test<br />

expressions must evaluate to numeric values, but the result expressions can be anything.<br />

And &<br />

Evaluates as 1 when both of its arguments are true. Otherwise, it evaluates as 0. (See Figure B.9.) The<br />

formula in Figure B.7 labels Group 1 as drivers only if both comparisons are true.<br />

Figure B.7 Creating an And Function<br />

Or |<br />

Evaluates as 1 when either of its arguments is true. If both of its arguments are false, then the Or expression<br />

evaluates as 0. (See Figure B.9.) The formula in Figure B.8 assigns males and all participants who are more<br />

than 13 years old to Group 1.<br />

Figure B.8 Creating an Or Function<br />

The truth tables on the left in Figure B.9 illustrate the results of the And (&) and Or (|) functions when<br />

both arguments have nonmissing values that evaluate to true or false. The table on the right illustrates the<br />

result when either the left or right expression (call them a and b) or both have missing values.<br />

Figure B.9 Evaluations of And and Or Expressions

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

Saved successfully!

Ooh no, something went wrong!