Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed dataGroupings (ARSP-28), added groupingDataset (GitHub #187), added operation order (GitHub #200), changed label to name for groupings and groups (GitHub #217)

...

Xfancy
classrowcaps
Lines 1-1829:

Show the definition of the single 3 grouping factors referenced by the analysis.

  • Lines 2-19: Show the definition of the "Treatment" grouping factor, which has 3 groups: "Placebo", "Xanomeline Low Dose", and "Xanomeline High Dose". This grouping factor is not data-driven (dataDriven = false on line
3
  • 6).
  • Lines
19-27:

Show the definition of the 2 grouping factors referenced by the analysis, both of which are data-driven (dataDriven = true, as shown on lines 21 and 25).

  • Lines 20-2320-24: Show the definition of the "System Organ Class" grouping factor, for which group values are found in the ADAE AESOC variable specified in the groupingVariable attribute on line 23the groupingDataset and groupingVariable attributes on lines 22 and 23. This grouping factor is data-driven (dataDriven = true on line 24).
  • Lines 2425-2729: Show the definition of the "Preferred Term" grouping factor, for which group values are found in the ADAE AEDECOD variable specified in the groupingVariable attribute on line 27the groupingDataset and groupingVariable attributes on lines 27 and 28. This grouping factor is data-driven (dataDriven = true on line 29).
Lines 2831-4044:

Show the definition of the method referenced by the analysis, "Summary by group of a categorical variable", which has 2 operations:

  • Lines 3234-3538: Show the definition of the "Count of subjects" operation.
  • Lines 3639-4043: Show the definition of the "Percent of subjects" operation.
Lines 4246-5761:

Show the definition of the analysis:

  • Lines 4549-4650: Show that this is an analysis of the USUBJID variable in the ADSL dataset.
  • Line 4751: Shows the reference to the "Summary by group of a categorical variable" method.
  • Lines 4852-5761: Show the references to the 3 grouping factors, both of which are marked as producing a result for each group in the grouping factor (resultsByGroup = true, shown on lines 5054, 53 57 and 5660).
Lines 5862-178183

Show a list of a subset of the results for the analysis. Each entry in the list (starting with the operationId attribute preceded by a hyphen) represents an instance of the OperationResult class and contains:

  • The identifier value of the statistical operation performed, which is in the operationId attribute.
  • In the resultGroups attribute, a reference to both grouping factor groups associated with the result (indicated by the values of the groupingId attribute and:
    • groupId for the "Treatment" grouping factor (which has predefined groups)
    • groupValue for the other 2 data-driven groupings factors.
  • The raw result value in the rawValue attribute, and
  • In the formattedValue attribute, the result value formatted according to the pattern specified in the resultPattern attribute of the operation referenced by the operationId value. The specified patterns are shown on rows 35 38 and 3943.
Code Block
titleYAML Example
linenumberstrue
analysisGroupings:
- id: AnlsGrouping_01_Trt
  dataDrivenname: falseTreatment
  labelgroupingDataset: TreatmentADSL
  groupingVariable: TRT01A
  dataDriven: false
  groups:
  - id: AnlsGrouping_01_Trt_1
    labelname: Placebo
    order: 1
    ...
  - id: AnlsGrouping_01_Trt_2
    labelname: Xanomeline Low Dose
    order: 2 
    ...
  - id: AnlsGrouping_01_Trt_3
    labelname: Xanomeline High Dose
    order: 3 
    ...
dataGroupings:
- id: AnlsGrouping_06_Soc
  dataDrivenname: System Organ trueClass
  labelgroupingDataset: System Organ ClassADAE
  groupingVariable: AESOC
  groupingVariabledataDriven: AESOCtrue
- id: AnlsGrouping_07_Pt
  dataDrivenname: Preferred trueTerm
  labelgroupingDataset: Preferred TermADAE
  groupingVariable: AEDECOD
  dataDriven: true
methods:
- id: Mth01_CatVar_Summ_ByGrp
  name: Summary by group of a categorical variable
  operations:
  - id: Mth01_CatVar_Summ_ByGrp_1_n
    name: Count of subjects
    label: n
    order: 1
    resultPattern: XXX
  - id: Mth01_CatVar_Summ_ByGrp_2_pct
    name: Percent of subjects
    label: '%'
    order: 2
    resultPattern: ( XX.X)
    ...
analyses:
- id: An07_10_SocPt_Summ_ByTrt
  name: Summary of Subjects with TEAEs by Treatment, System Organ Class and Preferred Term
  version: 1
  dataset: ADAE
  variable: USUBJID
  methodId: Mth01_CatVar_Summ_ByGrp
  orderedGroupings:
  - order: 1
    resultsByGroup: true
    groupingId: AnlsGrouping_01_Trt
  - order: 2
    resultsByGroup: true
    groupingId: AnlsGrouping_06_Soc
  - order: 3
    resultsByGroup: true
    groupingId: AnlsGrouping_07_Pt
  results:
  - operationId: Mth01_CatVar_Summ_ByGrp_1_n
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_1
    - groupingId: AnlsGrouping_06_Soc
      groupValue: CARDIAC DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: ATRIAL FIBRILLATION
    rawValue: '1'
    formattedValue: '1'
  - operationId: Mth01_CatVar_Summ_ByGrp_2_pct
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_1
    - groupingId: AnlsGrouping_06_Soc
      groupValue: CARDIAC DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: ATRIAL FIBRILLATION
    rawValue: '1.1628'
    formattedValue: (  1.2)
  - operationId: Mth01_CatVar_Summ_ByGrp_1_n
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_1
    - groupingId: AnlsGrouping_06_Soc
      groupValue: GASTROINTESTINAL DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: DIARRHOEA
    rawValue: '9'
    formattedValue: '9'
  - operationId: Mth01_CatVar_Summ_ByGrp_2_pct
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_1
    - groupingId: AnlsGrouping_06_Soc
      groupValue: GASTROINTESTINAL DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: DIARRHOEA
    rawValue: '10.4651'
    formattedValue: ( 10.5)
  - operationId: Mth01_CatVar_Summ_ByGrp_1_n
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_2
    - groupingId: AnlsGrouping_06_Soc
      groupValue: CARDIAC DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: ATRIAL FIBRILLATION
    rawValue: '1'
    formattedValue: '1'
  - operationId: Mth01_CatVar_Summ_ByGrp_2_pct
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_2
    - groupingId: AnlsGrouping_06_Soc
      groupValue: CARDIAC DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: ATRIAL FIBRILLATION
    rawValue: '1.1905'
    formattedValue: (  1.2)
  - operationId: Mth01_CatVar_Summ_ByGrp_1_n
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_2
    - groupingId: AnlsGrouping_06_Soc
      groupValue: GASTROINTESTINAL DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: DIARRHOEA
    rawValue: '4'
    formattedValue: '4'
  - operationId: Mth01_CatVar_Summ_ByGrp_2_pct
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_2
    - groupingId: AnlsGrouping_06_Soc
      groupValue: GASTROINTESTINAL DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: DIARRHOEA
    rawValue: '4.7619'
    formattedValue: (  4.8)
  - operationId: Mth01_CatVar_Summ_ByGrp_1_n
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_3
    - groupingId: AnlsGrouping_06_Soc
      groupValue: CARDIAC DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: ATRIAL FIBRILLATION
    rawValue: '3'
    formattedValue: '3'
  - operationId: Mth01_CatVar_Summ_ByGrp_2_pct
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_3
    - groupingId: AnlsGrouping_06_Soc
      groupValue: CARDIAC DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: ATRIAL FIBRILLATION
    rawValue: '3.5714'
    formattedValue: (  3.6)
  - operationId: Mth01_CatVar_Summ_ByGrp_1_n
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_3
    - groupingId: AnlsGrouping_06_Soc
      groupValue: GASTROINTESTINAL DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: DIARRHOEA
    rawValue: '4'
    formattedValue: '4'
  - operationId: Mth01_CatVar_Summ_ByGrp_2_pct
    resultGroups:
    - groupingId: AnlsGrouping_01_Trt
      groupId: AnlsGrouping_01_Trt_3
    - groupingId: AnlsGrouping_06_Soc
      groupValue: GASTROINTESTINAL DISORDERS
    - groupingId: AnlsGrouping_07_Pt
      groupValue: DIARRHOEA
    rawValue: '4.7619'
    formattedValue: (  4.8)
    ...
 ...

...

Alternatively, to aid readability, each of the identifier values could be used to retrieve and include the name or label (or any other descriptive information) from the definitions of the operations, grouping factors, and predefined groups:

Xfancy
classdataset
analysisIdoperationIdoperation_labelgroupingId1grouping_label1name1groupId1group_label1name1groupingId2grouping_label2name2groupValue2groupingId3grouping_label3name3groupValue3rawValueformattedValue
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_1_nnAnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_1PlaceboAnlsGrouping_06_SocSystem Organ ClassCARDIAC DISORDERSAnlsGrouping_07_PtPreferred TermATRIAL FIBRILLATION11
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_2_pct%AnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_1PlaceboAnlsGrouping_06_SocSystem Organ ClassCARDIAC DISORDERSAnlsGrouping_07_PtPreferred TermATRIAL FIBRILLATION1.1628(  1.2)
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_1_nnAnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_1PlaceboAnlsGrouping_06_SocSystem Organ ClassGASTROINTESTINAL DISORDERSAnlsGrouping_07_PtPreferred TermDIARRHOEA99
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_2_pct%AnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_1PlaceboAnlsGrouping_06_SocSystem Organ ClassGASTROINTESTINAL DISORDERSAnlsGrouping_07_PtPreferred TermDIARRHOEA10.4651( 10.5)
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_1_nnAnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_2Xanomeline Low DoseAnlsGrouping_06_SocSystem Organ ClassCARDIAC DISORDERSAnlsGrouping_07_PtPreferred TermATRIAL FIBRILLATION11
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_2_pct%AnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_2Xanomeline Low DoseAnlsGrouping_06_SocSystem Organ ClassCARDIAC DISORDERSAnlsGrouping_07_PtPreferred TermATRIAL FIBRILLATION1.1905(  1.2)
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_1_nnAnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_2Xanomeline Low DoseAnlsGrouping_06_SocSystem Organ ClassGASTROINTESTINAL DISORDERSAnlsGrouping_07_PtPreferred TermDIARRHOEA44
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_2_pct%AnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_2Xanomeline Low DoseAnlsGrouping_06_SocSystem Organ ClassGASTROINTESTINAL DISORDERSAnlsGrouping_07_PtPreferred TermDIARRHOEA4.7619(  4.8)
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_1_nnAnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_3Xanomeline High DoseAnlsGrouping_06_SocSystem Organ ClassCARDIAC DISORDERSAnlsGrouping_07_PtPreferred TermATRIAL FIBRILLATION33
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_2_pct%AnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_3Xanomeline High DoseAnlsGrouping_06_SocSystem Organ ClassCARDIAC DISORDERSAnlsGrouping_07_PtPreferred TermATRIAL FIBRILLATION3.5714(  3.6)
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_1_nnAnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_3Xanomeline High DoseAnlsGrouping_06_SocSystem Organ ClassGASTROINTESTINAL DISORDERSAnlsGrouping_07_PtPreferred TermDIARRHOEA44
An07_10_SocPt_Summ_ByTrtMth01_CatVar_Summ_ByGrp_2_pct%AnlsGrouping_01_TrtTreatmentAnlsGrouping_01_Trt_3Xanomeline High DoseAnlsGrouping_06_SocSystem Organ ClassGASTROINTESTINAL DISORDERSAnlsGrouping_07_PtPreferred TermDIARRHOEA4.7619(  4.8)

...