8.4 Program block: transformed data
The transformed data
block is for declaring and defining
variables that do not need to be changed when running the program.
Variable reads and transformations
For the transformed data
block, variables are all declared in
the variable declarations and defined in the statements. There is no
reading from external sources and no transformations performed.
Variables declared in the data
block may be used to declare
transformed variables.
Statements
The statements in a transformed data
block are used to define
(provide values for) variables declared in the transformed data
block. Assignments are only allowed to variables declared in the
transformed data
block.
These statements are executed once, in order, right after the data is read into the data variables. This means they are executed once per chain.
Variables declared in the data
block may be used in statements
in the transformed data
block.