This example shows parameterized programming code for the "Comparison of Age Group by Treatment" analysis specified directly in the code attribute, with the values used at runtime for the 3 parameters specified in the parameters attribute.

YAML Example
analyses:
- id: An03_02_AgeGrp_Comp_ByTrt
  name: Comparison of Age Group by Treatment
  programmingCode:
    context: SAS Version 9.4
    code: 'proc freq data=&ANDS;
      table &GRPVAR * &ANVAR / chisq;
      exact pchi; 
      run;'
    parameters:
    - name: ANDS
      description: Analysis dataset
      value: ADSL
    - name: GRPVAR
      description: Grouping variable
      value: TRT01A
    - name: ANVAR
      description: Analysis variable
      value: AGEGRP
   ...
...
  • No labels