1. Home
  2. SET2FORMULA directive

SET2FORMULA directive

Forms a model formula using a set of structures supplied in a pointer.

Option

METHOD = string token Relationship of the structures within the formula (combined, crossed, nested); default comb

Parameters

POINTER = pointers Sets of structures to be used to form the formulae
FORMULA = formula structures Formulae constructed from the sets

Description

SET2FORMULA forms a model formula using the contents (factors and/or variates) of a pointer. The pointer is specified by the POINTER parameter, and the formula is saved by the FORMULA parameter.

The METHOD option defines how the formula is constructed. With the combined setting, the formula has a single model term combining all the structures: for example

SET2FORMULA !p(A,B,C); FORMULA=Fcomb

sets up Fcomb as the formula

A.B.C

The crossed setting links the contents of the pointer using the operator *, so it would form the formula

A*B*C

The nested setting uses the operator /, so it would form

A/B/C

Option: METHOD.

Parameters: POINTER, FORMULA.

See also

Directives: FORMULA, FCLASSIFICATION, REFORMULATE, SETCALCULATE, SETRELATE.

Commands for: Calculations and manipulation.

Updated on March 5, 2019

Was this article helpful?