Versions Compared

Key

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

This example shows parameterized programming code specified 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.

Panel
titleYAML Example
Markdown
```
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
   ...
...
```