Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This example shows template programming code specified for an analysis method specified defined in the method attribute of the reporting event (lines 14-41). In this example, there are 3 parameters associated with the template programming code, each containing a reference to a metadata element in the valueSource attribute. The metadata references are defined relative to the analysis using the method in the format orderedGroupings[x].groupingId.groupingVariable  which indicates (according to the sponsor's applied syntax) "the value of the groupingVariable attribute of the instance of the (subject or data) grouping factor referenced in the groupingId attribute of the list of orderedGroupings for the analysis where order = x". The template programming statements (for which the computer language is "SAS Version 9.4", as specified in the context attribute) contain replacement parameter references corresponding with the 3 template code parameters. The parameter references are formatted to facilitate the sponsor's Python-based implementation, which involved copying the template programming code to the analysis while replacing the replacement parameter references with the values obtained from the metadata references to create analysis-specific programming statements that are ready for execution. 

...