DummyByCondition(ConditionFor1)
Index Tutorial Glossary  

Creates a dummy, which is equal to 1 if the required logical expression ConditionFor1 is TRUE and 0 otherwise. A logical condition can be used in the User Defined Variable box only as an argument of the DummyByCondition() function.

Procedure

To enter a logical condition, select the DummyByCondition() in the Function box. Then, click on the button. The name of the function will appear in the User Defined Variable box. Type in the logical condition, close parentheses and click on the . The user-defined variable will be added to the list of variables in the Variables box.

Both string and numeric variables and values can be used in the logical expression. The strings should be enclosed in single quotation marks.

Examples Creating Dummy Variable with DummyByCondition() Function


Related Topics