{
  "id": "csr-methods-section-text",
  "title": "CSR methods section text from the SAP and protocol: one worked example on CDISCPILOT01",
  "study": {
    "name": "CDISCPILOT01 (CDISC SDTM/ADaM Pilot Project, xanomeline TTS in mild to moderate Alzheimer's disease)",
    "source_url": "https://github.com/cdisc-org/sdtm-adam-pilot-project",
    "licence_note": "Excerpts are quoted from the Statistical Analysis Plan (Appendix 9 of the CDISCPILOT01 CSR, CSR pp.417-487) and the study protocol (Appendix 1 of the CSR, document pp.44-45), CDISC. Attribution to CDISC is required by the repository README terms: unmodified, no sale of the data, attribution back to CDISC. The study is a repurposed mock submission with fictional dates, not a real filing. Excerpts are shortened and sentences collapsed; omitted text is not always marked, so check the source for full wording. The answer key (CSR section 9.7) was read only after the cold answer was written."
  },
  "task": "Draft the statistical methods section (ICH E3 section 9.7) of a clinical study report from the SAP and protocol statistical text, flagging where the two documents disagree.",
  "time_to_try_minutes": {
    "minutes": 15,
    "label": "estimate: paste excerpts, run prompt, check each sentence against your SAP"
  },
  "good": {
    "input_excerpt": "[SAP 1.2, pp.5-6] The study was a prospective, randomized, multi-center (17), double-blind, placebo-controlled, parallel-group study. The treatment groups will be \"xanomeline high dose,\" \"xanomeline low dose,\" and \"placebo\". The duration of treatment was 26 weeks, with 24 weeks of active treatment. A total of 295 patients were randomized into 1 of 3 treatment groups.\n\n[SAP 5, p.8] Approximately 100 patients will be randomized to each of the 3 treatment groups. Previous experience with the oral formulation of xanomeline suggests that this sample size has 90% power to detect a 3.0 mean treatment difference in ADAS-Cog (p<.05, two-sided), based on a standard deviation of 6.5.\n\n[SAP 6, p.8] ITT Population: All patients randomized. Safety population: All patients randomized and known to have taken at least one dose of randomized drug. Efficacy population: All patients who were randomized and took drug, and have at least 1 post-baseline measure for both ADAS-Cog and CIBIC+. Completers: All patients in the efficacy population who completed their Week 24 visit (Visit 12).\n\n[SAP 7 and 7.3, pp.8-9] All statistical tests will be 2-sided with a significance level of 0.05. There are 2 primary efficacy endpoints, each of which will be tested at a significance level of 0.05. No adjustments for multiple primary endpoints will be made. Within each primary efficacy endpoint, pairwise comparisons for the 2 active treatment groups and placebo will only be performed if the test for dose response is significant.\n\n[SAP 8.1, p.9] Missing postbaseline efficacy values will be imputed using last observation carried forward (LOCF).\n\n[SAP 10.1.1, p.13] The primary analysis of the ADAS-Cog (11) at Week 24 will use the efficacy population with LOCF imputation. A secondary analysis will use the completers subset using observed data. An ANCOVA model will be used with the baseline score, site, and treatment included as independent variables. Treatment will be included as a continuous variable, and results for a test of dose response will be produced. A supportive analysis will use a likelihood-based repeated measures (MMRM) analysis with fixed, categorical effects of treatment, site, time (week), and treatment by time interaction along with baseline ADAS-Cog (11) score and baseline score by time interaction. An unstructured covariance matrix will be used; if there is any computational singularity, a Toeplitz covariance matrix will be used.\n\n[SAP 10.1.2, p.14] CIBIC+: efficacy population with LOCF. An ANOVA model will be used with site and treatment included as independent variables. Treatment will be included as a continuous variable, and results for a test of dose response will be produced.\n\n[SAP 11.2, p.15] Treatment emergent adverse events will be cross-tabulated by System Organ Class and preferred term; the adverse events will be recoded according to MedDRA. The incidence under each preferred term for each active treatment will be compared to placebo using Fisher's exact test.\n\n[SAP 15.1, Appendix 2, p.47] ANOVA and ANCOVA models for the efficacy endpoints will not assess site*treatment interaction. The normality assumption for the efficacy endpoints will not be investigated and consideration for rank transformations will not be done. Interim analyses will not be performed. Covariate analyses examining the effect of Apo E on the efficacy measures will not be performed.\n\n[Protocol 4.3.4-4.3.5, pp.44-46] All comparisons between xanomeline and placebo with respect to efficacy variables should be one-sided. Because both ADAS-Cog (11) and CIBIC+ must be significant, the plan is to conduct a randomization test (10,000 random permutations) to combine the two dose-response p-values into a single test at the .05 Type I error level.",
    "input_excerpt_words": 578,
    "prompt": "Write the statistical methods section of a clinical study report (ICH E3 style, section 9.7) for the study in the excerpt, in past tense, under 600 words. Use only what the excerpt says. Subsections: general considerations, analysis populations, efficacy, safety, sample size, interim analyses, changes from the protocol. Where the SAP and the protocol disagree, follow the SAP, and list each disagreement in a note after the section. Where a methods section normally needs something the excerpt does not give (for example software version or randomization method), write \"not stated in the excerpt\" instead of filling it in.",
    "output": "9.7 Statistical Methods\n\n9.7.1 General considerations\nThe study was a prospective, randomized, multi-center (17 centers), double-blind, placebo-controlled, parallel-group study of xanomeline transdermal system (TTS) 50 cm2 (low dose) and 75 cm2 (high dose) versus placebo, with 26 weeks of treatment of which 24 weeks were active. All statistical tests were 2-sided with a significance level of 0.05. Missing postbaseline efficacy values were imputed using last observation carried forward (LOCF); missing baseline values and missing safety data were not imputed. Software and version: not stated in the excerpt. Randomization method: not stated in the excerpt.\n\n9.7.2 Analysis populations\nITT: all randomized patients. Safety: all randomized patients known to have taken at least one dose of randomized drug. Efficacy: all patients who were randomized, took drug, and had at least one postbaseline measure for both ADAS-Cog and CIBIC+. Completers: all patients in the efficacy population who completed the Week 24 visit (Visit 12).\n\n9.7.3 Efficacy analyses\nThe two primary endpoints were ADAS-Cog (11) and CIBIC+ at Week 24 (endpoint definitions beyond this: not stated in the excerpt). Each was tested at the 0.05 level, with no adjustment for the two primary endpoints.\nADAS-Cog (11): the primary analysis used the efficacy population with LOCF. An ANCOVA model included baseline score, site and treatment as independent variables, with treatment entered as a continuous variable to give a test of dose response. A secondary analysis used the completers subset with observed data. A supportive likelihood-based repeated-measures (MMRM) analysis included the fixed categorical effects of treatment, site, time (week) and treatment-by-time interaction, plus baseline score and baseline score-by-time interaction, with an unstructured covariance matrix (Toeplitz in the event of computational singularity).\nCIBIC+: the efficacy population with LOCF was analyzed by ANOVA with site and treatment (continuous) as independent variables, giving a test of dose response.\nFor each endpoint, pairwise comparisons of the two active groups with placebo were performed only if the test for dose response was significant. Site-by-treatment interaction was not assessed. Normality was not investigated and rank transformations were not considered.\n\n9.7.4 Safety analyses\nAdverse events were coded with MedDRA. Treatment-emergent adverse events were cross-tabulated by system organ class and preferred term, and the incidence for each active treatment was compared with placebo using Fisher's exact test. (Other safety analyses: not stated in the excerpt.)\n\n9.7.5 Sample size\nApproximately 100 patients per arm were planned. This provided 90% power to detect a 3.0-point mean treatment difference in ADAS-Cog (11) (2-sided p<0.05, SD 6.5).\n\n9.7.6 Interim analyses\nNo interim analyses were performed.\n\n9.7.7 Changes from the protocol\nSite-by-treatment interaction testing, normality assessment and rank transformation, Apo E covariate analyses and interim analyses, all described in the protocol, were not performed.\n\nNotes on SAP versus protocol disagreements (followed the SAP in each case)\n1. Sidedness: the protocol called for one-sided efficacy comparisons with significance at .025; the SAP specifies 2-sided tests at 0.05.\n2. Multiplicity: the protocol planned a randomization test (10,000 permutations) combining the two dose-response p-values; the SAP specifies no adjustment.\n3. Interim analyses: the excerpt gives the protocol position only through the SAP deviation list; the protocol's own interim plan is not in the excerpt.\n4. Patient count: the excerpt says 295 randomized, but this is in a plan document; actual numbers must come from the disposition tables, not this excerpt.",
    "trim_note": "Excerpt trimmed to about 580 words from SAP pp.5-15 and 47 plus protocol pp.44-46. Left out: disposition and baseline methods (SAP 9), NPI-X (SAP 10.2.1), assessment windows, laboratory and vital sign methods (SAP 8.2-11.6), the protocol amendments and the protocol's own interim analysis plan. The output is shown in full as produced, unedited.",
    "contamination_note": "Contamination: before building the excerpt I had read PROVENANCE.md, which states the CSR reports 254 randomized against a planned 300, so the 295 versus actual-count flag in note 4 may have been prompted by that knowledge. I had not opened the CSR body or section 9.7 when the cold answer was written. The lazy run was also written after reading PROVENANCE.md and the brief, but before any SAP, protocol or CSR text."
  },
  "bad": {
    "input": "write the statistical methods section for my Alzheimer's CSR",
    "output": "Here is a draft Statistical Methods section for your CSR.\n\n9.7 Statistical Methods\n\n9.7.1 General Considerations\nAll statistical analyses were performed using SAS version 9.4. Continuous variables were summarized using descriptive statistics (n, mean, standard deviation, median, minimum, maximum). Categorical variables were summarized using frequencies and percentages. All tests were two-sided with a significance level of 0.05 unless otherwise stated.\n\n9.7.2 Analysis Populations\nThe Intent-to-Treat (ITT) population included all randomized patients who received at least one dose of study drug. The Per-Protocol population included all ITT patients without major protocol deviations. The Safety population included all patients who received at least one dose of study drug.\n\n9.7.3 Efficacy Analyses\nThe primary efficacy endpoint, change from baseline in ADAS-Cog total score at Week 24, was analyzed using a mixed model for repeated measures (MMRM) with treatment, visit, treatment-by-visit interaction, and baseline score as covariates, with an unstructured covariance matrix. Missing data were handled under the missing-at-random assumption. Multiplicity was controlled using a hierarchical gatekeeping procedure. Secondary endpoints were analyzed similarly.\n\n9.7.4 Safety Analyses\nAdverse events were coded using MedDRA and summarized by treatment group. Laboratory values, vital signs and ECGs were summarized descriptively.\n\n9.7.5 Sample Size\nA sample size of 100 patients per arm provides 90% power to detect a difference of 3 points on the ADAS-Cog with a standard deviation of 8.\n\n9.7.6 Interim Analyses\nAn interim analysis was conducted with an O'Brien-Fleming alpha spending function.\n\nPlease send the protocol and SAP if you want me to tailor this to your study.",
    "what_went_wrong": [
      "Primary analysis stated as MMRM; the SAP and CSR primary is ANCOVA with LOCF, with MMRM only supportive (CSR 9.7.1.3 p.20).",
      "ITT defined as randomized and dosed; the SAP defines ITT as all randomized, with Safety, Efficacy and Completers populations separate (SAP 6 p.8). A Per-Protocol population was invented.",
      "CIBIC+, the second primary endpoint, is missing entirely. Dose-response testing, site as a model term and LOCF are missing.",
      "Hierarchical gatekeeping was invented; the SAP makes no multiplicity adjustment (SAP 7.3 p.9).",
      "SD of 8 and 'SAS version 9.4' were guesses; the SAP gives SD 6.5 and names no version. An O'Brien-Fleming interim analysis 'was conducted'; the SAP says interim analyses will not be performed (SAP 15.1 p.47).",
      "Safety section is generic (no Fisher's exact test, no dermatological AE analysis, no labs method). The text was fluent and confident, with no guess flagged except a closing request for the SAP."
    ]
  },
  "what_changed": [
    "The model was given the SAP's actual primary model, populations, imputation and sample size inputs, so the section states ANCOVA with LOCF, dose-response then pairwise, instead of a generic MMRM.",
    "The prompt told it to write 'not stated in the excerpt' rather than fill gaps, and it did for software and randomization method. The lazy run guessed SAS 9.4.",
    "The prompt asked it to list SAP versus protocol disagreements. It found sidedness and multiplicity, which a lazy run cannot see.",
    "The 600-word cap forced a short section. The cost is coverage: the real 9.7 runs about four pages. Budget a pass per subsection.",
    "I fed it protocol text (4.3.4 and 4.3.5) next to the SAP. That produced the disagreement notes; with the SAP alone it would not have had them."
  ],
  "check_before_trust": [
    "Compare every model sentence with the SAP paragraph it came from. The cold answer paraphrased tightly, but 'two active groups with placebo' drifted from 'among the 3 groups'.",
    "Check what the section does not cover against the ICH E3 9.7 template. Gaps are silent unless the prompt asks for them; here disposition, baseline, secondary endpoints, labs and vital signs were missing.",
    "Do not trust a past-tense claim built on a SAP future-tense sentence ('interim analyses will not be performed'). Confirm with the study record.",
    "Check counts. The SAP says 295 randomized; the CSR reports 254. Never let a section take N from a plan.",
    "Keep software, versions and randomization wording from your own documents. A model asked to be complete will invent them; this one was told not to.",
    "Decide which source wins when documents disagree. Here the SAP overrides the protocol for sidedness and multiplicity, and the CSR follows the SAP. The note list is only as good as the documents you pasted.",
    "Check that every number in the output is in what you pasted. Here two correct details (dose areas, '.025') were not in the excerpt even though the prompt said to use only the excerpt."
  ],
  "verification": {
    "answer_key": "CSR section 9.7 (Statistical Methods Planned in the Protocol and Determination of Sample Size), printed CSR pp.19-22, with 9.8 (p.23) and 10.1 (p.24) for changes and counts. SAP page n is CSR page 416+n.",
    "rows": [
      {
        "claim": "General: all tests 2-sided at 0.05",
        "verdict": "correct",
        "cite": "CSR 9.7.1 p.19 (0.05 'unless otherwise noted'); SAP 7 p.8"
      },
      {
        "claim": "LOCF for missing postbaseline efficacy values; baseline and safety not imputed",
        "verdict": "correct",
        "cite": "SAP 8.1 p.9; CSR 9.7.1.3 p.20 mentions LOCF for efficacy"
      },
      {
        "claim": "Four populations defined (ITT, Safety, Efficacy, Completers)",
        "verdict": "correct",
        "cite": "SAP 6 p.8; CSR 9.7 itself does not define them (it refers to analysis datasets, Table 14-1.01)"
      },
      {
        "claim": "Primary endpoints ADAS-Cog (11) and CIBIC+ at Week 24",
        "verdict": "correct",
        "cite": "CSR 9.7.1.1 p.19"
      },
      {
        "claim": "ADAS-Cog primary: ANCOVA on efficacy population with LOCF; baseline, site, treatment (continuous); dose-response test",
        "verdict": "correct",
        "cite": "CSR 9.7.1.3 p.20; SAP 10.1.1 p.13"
      },
      {
        "claim": "ADAS-Cog supportive MMRM terms (treatment, site, time, treatment by time, baseline, baseline by time)",
        "verdict": "correct",
        "cite": "CSR 9.7.1.3 p.20; SAP 10.1.1 p.13"
      },
      {
        "claim": "Unstructured covariance, Toeplitz on singularity",
        "verdict": "not in source",
        "cite": "In SAP p.13 but omitted from CSR 9.7; the cold answer was right to carry it, a CSR reader will not find it in 9.7"
      },
      {
        "claim": "Completers secondary analysis with observed data",
        "verdict": "not in source",
        "cite": "SAP p.13 only; CSR 9.7 does not mention it"
      },
      {
        "claim": "CIBIC+: ANOVA with site and treatment (continuous), efficacy population, LOCF",
        "verdict": "correct",
        "cite": "CSR 9.7.1.3 p.20; SAP 10.1.2 p.14"
      },
      {
        "claim": "Pairwise comparisons only if dose-response test significant",
        "verdict": "partly",
        "cite": "CSR says pairwise among the 3 groups at 0.05; the answer wrote 'two active groups with placebo' (SAP 7.3 wording). Same intent, narrower than CSR and SAP 10.1.1 'among the 3 groups'"
      },
      {
        "claim": "Each primary endpoint at 0.05, no multiplicity adjustment",
        "verdict": "not in source",
        "cite": "SAP 7.3 p.9 only; CSR 9.7 is silent on multiplicity"
      },
      {
        "claim": "Site-by-treatment interaction not assessed; normality not investigated",
        "verdict": "not in source",
        "cite": "SAP 15.1 p.47 only; CSR 9.7 and 9.8 do not list them, 9.8 says only that SAP Appendix 9 lists changes"
      },
      {
        "claim": "TEAEs coded to MedDRA, SOC and PT, Fisher's exact vs placebo",
        "verdict": "correct",
        "cite": "CSR 9.7.1.4 p.21; SAP 11.2 pp.14-15"
      },
      {
        "claim": "Sample size: about 100 per arm, 90% power, difference 3.0, SD 6.5, 2-sided 0.05 for ADAS-Cog",
        "verdict": "correct",
        "cite": "CSR 9.7.2 p.22; SAP 5 p.8. The CIBIC+ 80% power sentence was trimmed from the excerpt and so is missing"
      },
      {
        "claim": "'No interim analyses were performed'",
        "verdict": "partly",
        "cite": "True per SAP 15.1 p.47 ('will not be performed'); CSR 9.7 and 9.8 say nothing on interim analyses. The SAP is future tense; the answer asserted past tense"
      },
      {
        "claim": "Note 1: protocol one-sided at .025 vs SAP 2-sided at 0.05; SAP followed",
        "verdict": "partly",
        "cite": "Protocol 4.3.4 pp.44-45; SAP 7 p.8; CSR 9.7.1 and 9.7.2 use 2-sided 0.05. The disagreement is real, but '.025' is not in the excerpt printed on this page (the excerpt says only 'one-sided' and 'at the .05 Type I error level'). The protocol does say .025 (4.3.4 p.45), so the number is right, but the model supplied it from outside the excerpt"
      },
      {
        "claim": "Note 2: protocol randomization test vs SAP no adjustment; SAP followed",
        "verdict": "correct",
        "cite": "Protocol 4.3.5 pp.45-46 (the randomization test sentence is on p.46); SAP 7.3 p.9; CSR 9.7 silent"
      },
      {
        "claim": "Note 4: '295 randomized' comes from a plan; use disposition counts",
        "verdict": "correct",
        "cite": "SAP 1.2 p.6 says 295; CSR 10.1 p.24 reports 254 (86 / 84 / 84). See the contamination note: the 254 figure was in PROVENANCE.md, read before the excerpt was built"
      },
      {
        "claim": "Note 3: protocol interim plan not in the excerpt",
        "verdict": "correct",
        "cite": "Protocol 4.6 p.47 plans two interim efficacy analyses; the excerpt did not include it. The note is awkward but accurate"
      },
      {
        "claim": "Low dose = 50 cm2, high dose = 75 cm2",
        "verdict": "partly",
        "cite": "Mapping is right: SAP 1.2 pp.5-6 (54 mg and 81 mg). But neither '50 cm2', '75 cm2' nor 'TTS' appears in the excerpt printed on this page. Either the model drew them from its background or the excerpt it saw differed from the one printed here; I cannot tell which. Treat these as unsupported by the excerpt"
      },
      {
        "claim": "Disposition and baseline characteristics methods (Fisher, ANOVA, chi-square)",
        "verdict": "false gap",
        "cite": "Not in the answer. Required in CSR 9.7.1.2 pp.19-20. Trimmed from my excerpt, not missing from the SAP (SAP 9.1-9.2 p.12)"
      },
      {
        "claim": "Secondary endpoints (ADAS-Cog and CIBIC+ at Weeks 8/16, NPI-X) and NPI-X method",
        "verdict": "false gap",
        "cite": "Not in the answer or excerpt. CSR 9.7.1.1 and 9.7.1.3 pp.19-20; SAP 3.2.2, 10.2.1"
      },
      {
        "claim": "Exposure, dermatological AE (Kaplan-Meier), labs (Hy's Law, CMH), vital signs, weight, concomitant medication methods",
        "verdict": "false gap",
        "cite": "Not in the answer or excerpt. CSR 9.7.1.4 pp.21-22; SAP 11.1-11.6"
      },
      {
        "claim": "Protocol amendments (3, ambulatory ECG changes)",
        "verdict": "false gap",
        "cite": "Not in the answer or excerpt. CSR 9.8 p.23. The answer did not say amendments were absent from the excerpt"
      }
    ],
    "errors_found": [
      "Section is incomplete as a CSR 9.7: no methods for disposition, baseline characteristics, secondary endpoints, NPI-X, exposure, labs, vital signs, dermatological AEs or concomitant medications. All are in the real 9.7.1.2 to 9.7.1.4 (pp.19-22). The cause is my excerpt, cut to about 580 words. The model wrote 'other safety analyses: not stated in the excerpt' but did not flag the missing secondary endpoints or disposition and baseline methods.",
      "Section 9.7.7 'Changes from the protocol' lists SAP Appendix 2 items but omits the three protocol amendments (CSR 9.8 p.23). The answer did not say amendments were absent from the excerpt.",
      "Pairwise comparisons were described as 'two active groups with placebo' rather than 'among the 3 groups' (SAP 10.1.1 p.13; CSR 9.7.1.3 p.20). Minor.",
      "'No interim analyses were performed' rests on a forward-looking SAP sentence ('will not be performed'). The real CSR 9.7 does not say it. A CSR author needs the study record to confirm.",
      "Several statements (completers analysis, Toeplitz, multiplicity, interaction and normality) come from the SAP and are absent from the real CSR 9.7. Not wrong, but the answer sits closer to the SAP than to the CSR the sponsor filed.",
      "Note 3 is badly worded (the protocol position is not in the excerpt, so it is not a disagreement at all). Left as produced.",
      "Two items in the output are not in the excerpt printed above: the dose areas 'TTS 50 cm2 (low dose) and 75 cm2 (high dose)' (9.7.1) and '.025' for the protocol significance level (note 1). Both are correct against the SAP and protocol, but the prompt said to use only the excerpt, so they are leaks from outside it (model background, or a longer excerpt than the one saved; unknown). Marked 'partly' in the table.",
      "Page labels in the excerpt: the protocol label read 'pp.44-45' but 4.3.5 and the randomization test continue to p.46. Corrected to 'pp.44-46'."
    ],
    "summary": "Of 24 elements checked: 12 correct, 4 partly, 4 present in the SAP but not in CSR 9.7, 4 false gaps from my trimmed excerpt; 0 flatly wrong in the cold answer. No invented numbers, but two correct details (dose areas, '.025') were not in the excerpt. The cold answer used the right primary model, populations and sample size inputs, refused to supply software or a randomization method, and flagged the sidedness and multiplicity conflicts and the 295 versus actual-count issue. The weakness is coverage: it is a fair first draft of the efficacy and sample size parts of 9.7 only. The lazy run got the primary model, the ITT definition, the SD, the multiplicity method and the interim analysis wrong."
  },
  "run": {
    "generated_by": "Claude (Anthropic), run as a subagent on 2026-10-20",
    "not_tested_in": "Microsoft 365 Copilot"
  }
}
