StatAgentWeekly email

From protocol to CSR: where AI fits in each hand-off

This page walks through seven stages of a clinical study, using public study documents. For each stage you get the prompt, the text you paste in, and the checks that catch what AI gets wrong. Only the SAP drafting prompt has been tested in Microsoft 365 Copilot, once. The prompt text shown here is a longer version used in a Claude worked example, not the exact text run in Copilot. Everything else is a starting point for you to test.

Read this first. What this page shows, and what it does not. Today no hand-off has been run as a chain end to end. Each worked example starts from the original public document (CDISCPILOT01 unless marked), not from the AI output of the previous stage.
More

The text shown moving across each seam is real public text, quoted exactly from the example that used it, so you can see what a paste looks like. It is not proof that the stages connect without loss. Chaining the examples is planned.

  1. Protocol: endpoints and design

    Not yet tested in CopilotThe protocol, including its statistics section (objectives, endpoints, sample size, analysis populations, interim analyses).

    Paste in

    Nothing is pasted from an earlier stage. You start from the statistics section of your own approved protocol. AI only checks it here; the protocol is written by people.

    Prompt

    Check this protocol statistics excerpt against SPIRIT 2013. For each item below give a verdict (addressed / partly addressed / deferred to another document / not in this excerpt), a verbatim quote, and the section and page.
    
    14 Sample size: estimated numbers and the assumptions behind them.
    20a Statistical methods for the primary and secondary outcomes.
    20b Methods for additional analyses (subgroup, adjusted).
    20c Definition of the analysis population relating to protocol non-adherence, and statistical methods to handle missing data.
    21b Interim analyses and stopping guidelines.
    
    Rules: use only the excerpt. If something is not in it, say "not in this excerpt" and do not claim the full protocol lacks it. If the text sends the reader to the SAP, call that "deferred", not "addressed". Finish with the five most important questions to put to the authors, and any sentence that can be read two ways.

    Output: ACTIV-6 public protocol, real run, Generated by Claude

    **Item 14, Sample size: PARTLY ADDRESSED**
    - Quote: "it is estimated that studies of about n=600 (300 study drug and 300 placebo) will be sufficiently sized to determine whether there is evidence of meaningful benefit with > 85% power (Table 2)."
    - Section 10.2, p. 45.

    Where it breaks

    • The check only sees the excerpt. It could not know that n=600 with >85% power is a screening-stage figure and that the plan is up to 1,200 per the SAP appendix. (pilot finding: protocol-stats-spirit-check, errors_found (4th item))
    • Six of its statements were fair readings of the trimmed excerpt that the full protocol answers (assumptions behind n=600, subgroup method, mITT exclusions and others). A check on an excerpt produces wrongly-missing items. (pilot finding: protocol-stats-spirit-check, errors_found (3rd item))
    • Our own prompt shortened SPIRIT item 21b. The official item also asks who has access to interim results and who decides to stop the trial, so the run never addressed those. (pilot finding: protocol-stats-spirit-check, errors_found (2nd item))
    More for this stage: SAS and R, worked examples

    Who: Clinical lead, Statistician, Medical writer

    SAS and R

    • SAS. This stage is text, so the prompt is language-neutral. Nothing here depends on SAS or R.
    • R. Nothing language-specific at this stage.

    Go deeper

  2. Hand-off 1 Paste the objectives, endpoints and estimands into the SAP prompt.

    What moves: Protocol sections on objectives, endpoints, sample size, populations, missing data, multiplicity and interim analyses.

    The primary objectives of this study are x To determine if there is a statistically significant relationship (overall Type 1 error rate, D=.05) between the change in both ADAS-Cog [...] and CIBIC+ [...] scores, and drug dose (0, 50 cm2 [54 mg], and 75 cm2 [81 mg]).

    The check Line up every analysis rule in the protocol against the SAP. Class each difference as clarification, change or conflict, and confirm each change is justified and dated before unblinding. Then read what the protocol says that the SAP never mentions.

    Where it broke in the pilot A draft SAP written from the protocol alone was faithful to the protocol and wrong for this trial's SAP on four points. (sap-first-draft, errors_found (2nd item))

    Shown in the worked example SAP first draft from protocol text: CDISCPILOT01 (xanomeline TTS in Alzheimer's disease). Print the check for this hand-off.

  3. Statistical analysis plan

    Tested in Microsoft 365 CopilotWorked example availableThe statistical analysis plan (SAP): populations, models and terms, hypotheses, multiplicity, missing data, interim analyses and the output list.

    Paste in

    Paste the objectives, endpoints and estimands into the SAP prompt.

    Prompt

    You are helping a senior biostatistician draft a statistical analysis plan (SAP). Use ONLY the protocol excerpts above. Draft these SAP sections: (1) analysis populations, (2) primary and secondary endpoint analyses (model, terms, hypothesis, timepoint), (3) handling of missing data, (4) multiplicity, (5) interim analysis. Be specific about models and model terms. Where the excerpts are silent, ambiguous or contradict each other, do not fill the gap and do not pick a side: list it in a final section "Open questions for the protocol owner", numbered, each tied to the page it concerns. Do not invent sample sizes, dates, software versions or numbers that are not in the excerpts. Cite the protocol page after every statement taken from an excerpt. Label anything you add that is not protocol text as a suggestion.

    Output: CDISCPILOT01 real run, Generated by Claude

    - Model: analysis of covariance (ANCOVA) (p. 43).
    - Terms: corresponding baseline score, investigator, and treatment (p. 43).

    Where it breaks

    • A draft written from the protocol alone was faithful to the protocol and wrong for this trial's SAP on four points: one-sided .025 testing, the randomization test for the co-primaries, the 3-day drug rule, and the two interim analyses. Nothing in the protocol could have told the model. (pilot finding: sap-first-draft, errors_found (2nd item))
    • The SAP also dropped analyses (ADAS-Cog (14), DAD, normality and rank rules, Apo E covariates). Dropped analyses produce silence, not a conflict. (pilot finding: sap-first-draft, errors_found (3rd item); sap-protocol-discrepancy-table, errors_found (3rd item))
    • Excerpt cuts created wrongly-missing items: the randomization-test details, item rescaling and the pooling rules were in the protocol but outside the excerpt. (pilot finding: sap-first-draft, errors_found (1st item))
    • Population definitions were proposed from protocol wording and were looser than the SAP (randomized and dosed, with a post-baseline value on both ADAS-Cog and CIBIC+). (pilot finding: sap-first-draft, errors_found (4th item))
    • In a protocol-versus-SAP table, rows labelled ONLY IN ONE TEXT can hide a rule change, and the prompt drafted questions only for CONFLICT rows. Read every such row. (pilot finding: sap-protocol-discrepancy-table, errors_found (3rd item))
    More for this stage: SAS and R, worked examples

    Who: Lead statistician, Reviewing statistician, Clinical lead

    SAS and R

    • SAS. SAP prompts are text, so SAS and R users use them the same way. If your SAP names SAS procedures (PROC MIXED, PROC GLM), keep them in the pasted text and the draft can follow them. (UNVERIFIED: not tested with SAS-specific protocol text.)
    • R. Nothing language-specific at this stage.

    Go deeper

  4. Hand-off 2 Paste the analysis sets and methods into the shell prompt.

    What moves: SAP analysis populations, summary statistic rules, models and the output list.

    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).

    The check Map each SAP analysis to a shell and each shell back to a SAP analysis. For every shell confirm the population, the denominator, the statistic list and the footnotes, and that column order matches the SAP.

    Where it broke in the pilot The shells never said the pairwise p-values were unadjusted, and left the demographics and AE populations unstated. (tlf-shells-from-sap, errors_found (1st and 3rd items))

    Shown in the worked example TLF shells from a SAP: one worked example on CDISCPILOT01. Print the check for this hand-off.

  5. Table, listing and figure shells

    Not yet tested in CopilotWorked example availableMock shells (table, listing and figure templates) with titles, populations, column headers, row structure and footnotes.

    Paste in

    Paste the analysis sets and methods into the shell prompt.

    Prompt

    From the SAP excerpts above, draft shells for three outputs: (1) the primary efficacy table, ADAS-Cog (11) change from baseline to Week 24 by ANCOVA; (2) demographics and baseline characteristics; (3) a treatment-emergent adverse event summary by SOC and preferred term. Plain-text tables, placeholders for every result. Use SAS-style placeholders: x for each digit, with decimals matching the usual convention (xx.x for means, x.xx for SD, 0.xxx for p-values, xx (xx.x%) for n (%)). Write every cell out; no "same layout as above" shortcuts. For each give the title, population, column headers with N placeholders, row structure, footnotes, and one model or test statement taken from the excerpts. Use the SAP's treatment group names. Do not add analyses the excerpts do not support; if you add a row from habit, mark it. Finish with a list of everything you could not determine from the excerpts.

    Output: CDISCPILOT01 real run, Generated by Claude

    Marking: [ADDED] = row or column included from habit, not supported by the excerpts. Delete it if you don't want it.
    Treatment group order follows SAP 1.2: xanomeline high dose, xanomeline low dose, placebo.

    Where it breaks

    • The SAP text puts the column order as high, low, placebo (SAP 1.2, p.5) but all three SAP templates use placebo, low, high. (pilot finding: tlf-shells-from-sap, errors_found (4th item))
    • The pairwise-comparison footnote never says the p-values are unadjusted for multiplicity, even though the model's own gap list said so. (pilot finding: tlf-shells-from-sap, errors_found (1st item))
    • Populations were left unstated for demographics and for the adverse event table, and two of the three "added by the model" marks were wrong against the full SAP. (pilot finding: tlf-shells-from-sap, errors_found (2nd and 3rd items))
    • The SAP disagrees with itself on the duration anchor (Visit 1, p.12 versus enrollment date, p.21) and on Race versus Origin; the run did not flag either. (pilot finding: tlf-shells-from-sap, errors_found (6th item))
    • Titles alone hide the verification level: the SAP template for the NPI-X table has p-values, which moves it to Level 1, and a lab table with change from baseline moves to Level 2. (pilot finding: verification-level-triage, errors_found (1st and 2nd items))
    More for this stage: SAS and R, worked examples

    Who: Statistician, Lead programmer, Medical writer

    SAS and R

    • SAS. The shell example uses SAS-style placeholders (x, xx.x, 0.xxx), so it should read naturally to SAS programmers. No SAS code is generated at this stage.
    • R. Nothing language-specific at this stage.

    Go deeper

  6. Hand-off 3 Paste the shell list so you know which variables are needed.

    What moves: The list of planned outputs, which tells the data side which variables and domains must exist.

    5. Primary Endpoint Analysis: ADAS Cog (11) - Change from Baseline to Week 24 - LOCF (Template 5)
    6. Primary Endpoint Analysis: CIBIC+ - Summary at Week 24 - LOCF (Template 6)

    The check For each planned output, confirm every needed variable is either mapped from the CRF or marked not submitted. Run conformance validation on the SDTM and compare the spec with define.xml.

    Where it broke in the pilot A draft mapping suggested an SU domain and DM.BRTHDTC that the study's define.xml does not contain. (sdtm-mapping-spec-draft-from-crf, errors_found (1st and 2nd items))

    No worked example has run this hand-off. The pasted text is the SAP output index used in verification-level-triage; the SDTM example starts from CRF pages instead. Print the check for this hand-off.

  7. Tabulation datasets

    Not yet tested in CopilotThe annotated CRF, the SDTM mapping specification, the SDTM datasets and their define.xml.

    Paste in

    Paste the shell list so you know which variables are needed.

    Prompt

    You are helping a clinical programmer draft an SDTM mapping specification from case report form (CRF) pages. Use ONLY the CRF text above plus your knowledge of the CDISC SDTM Implementation Guide. Produce a mapping table with these columns: CRF field (as printed) | SDTM domain.variable | Origin (CRF / Assigned / Derived) | Controlled terminology or format | Derivation or comment | CRF page. The text layer contains annotation fragments printed over the form; use them where legible, but do not trust a fragment you cannot read in full. Where the pages do not settle something (a variable, a codelist, a unit rule, which domain a field belongs in), do not guess: list it in a final section "Open questions for the data manager", numbered, each tied to a CRF page. Do not invent codelist values, visit numbers, or domains that the pages do not support. Mark anything you add from general SDTM knowledge as "suggestion".

    Output: CDISCPILOT01 real run, Generated by Claude

    - The CRF prints "Not Entered In Database" beside many items. I take it to mean the item is on the paper CRF but not in the clinical database. Whether such items are mapped at all is Open question 1.
    - Everything labelled "suggestion" comes from general SDTM knowledge, not from the pages.
    - The pages give no SDTM variable for USUBJID, SUBJID, SITEID, DOMAIN, --SEQ, VISIT or --TEST. I do not fill those in.

    Where it breaks

    • The draft suggested an SU (substance use) domain for smoking and alcohol items, but the study's define.xml has no SU domain. (pilot finding: sdtm-mapping-spec-draft-from-crf, errors_found (1st item))
    • The draft suggested DM.BRTHDTC, a variable the study never built. A programmer copying the table would add it. (pilot finding: sdtm-mapping-spec-draft-from-crf, errors_found (2nd item))
    • The CRF annotation says YEARSEDU and define.xml says EDLEVEL: two CDISC files disagree. The discrepancy is not resolved. (pilot finding: sdtm-mapping-spec-draft-from-crf, errors_found (3rd item))
    • define.xml says USUBJID is STUDYID, SITEID and SUBJID joined, but gives USUBJID length 11 and STUDYID length 12, so a literal concatenation cannot fit. Unresolved. (pilot finding: sdtm-mapping-spec-draft-from-crf, errors_found (7th item))
    • FDA's study data guide calls traceability one of the most problematic issues in any data conversion; a mapping spec is where it starts. (literature: https://www.fda.gov/media/153632/download)
    More for this stage: SAS and R, worked examples

    Who: Data manager, Statistical programmer, Statistician (reviewer)

    SAS and R

    • SAS. The mapping spec is a table, not code, so it is language-neutral. SAS-native SDTM programs are not built yet; the verified example at this stage contains no code.
    • R. No R code at this stage in our examples. R-based SDTM tooling (sdtm.oak in the pharmaverse) is a link-out, not something we have tested.

    Go deeper

  8. Hand-off 4 Paste the SDTM variable list into the ADaM prompt.

    What moves: ADaM specification rows (derivations, flags, imputation rules) and the SDTM source variables they use.

    AESEQ | Sequence Number | integer | AE.AESEQ

    The check Read the SAP derivation, the ADaM spec text and define.xml side by side. Every analysis flag should trace to a source variable, and the reviewer guide should match define.xml.

    Where it broke in the pilot A stray space in the define.xml text produced 265 of the 273 wrong cells (181 plus 84), and an unstated duration rule produced 8 more. All 10 tests built from the spec passed. (adam-spec-row-to-r-code, errors_found (1st, 2nd, 3rd and 5th items))

    Shown in the worked example Turn ADaM spec rows into draft code with a test plan, then run and compare with the real ADAE. The example starts from define.xml rows for ADAE, not from an SDTM variable list pasted into an ADaM spec prompt, so this hand-off is only partly shown. Print the check for this hand-off.

  9. Analysis datasets

    Not yet tested in CopilotThe ADaM specification, the ADaM datasets (ADSL, ADAE and others), define.xml and the Analysis Data Reviewer's Guide.

    Paste in

    Paste the SDTM variable list into the ADaM prompt.

    Prompt

    Draft code for the ADAE variables in the rows below. Language: R if you can; if R is not available, use Python (pandas). Allowed: base functions and dplyr only (no admiral).
    
    For each variable give one code block with a comment restating the derivation text. Use only the rows and source variables I pasted; do not add logic the text does not state. Where the text looks ambiguous or self-contradictory, say so once in OPEN QUESTIONS and say which reading you coded.
    
    Then give a test plan: 8 to 10 small synthetic cases with the expected value derived by hand from the text, and a plan for comparing every variable with an existing ADAE (keys USUBJID + AESEQ, variable by variable, counts of matches and a listing of mismatches).
    
    Label the code UNRUN. Do not claim it is correct.
    
    [define.xml rows and source variables pasted here]

    Output: CDISCPILOT01 real run, Generated by Claude

    1. AOCC01FL text says "Subset to CQ01NAM=''" but the parenthetical says "Flag First Treatment Emergent Dermatological Event". Coded the parenthetical (subset to CQ01NAM = 'DERMATOLOGIC EVENTS'). The literal text would flag the first non-dermatologic event.
    2. The CQ01NAM text has "SUBC UTANEOUS" with a space. Coded exactly as written; this looks like a typo for SUBCUTANEOUS. Check the distinct AEBODSYS values before trusting it.

    Where it breaks

    • The define.xml text 'SKIN AND SUBC UTANEOUS TISSUE DISORDERS' has a stray space. Implemented literally, CQ01NAM was wrong in 181 cells. (pilot finding: adam-spec-row-to-r-code, errors_found (1st item); define-derivation-pseudocode, errors_found (1st item))
    • AOCC01FL: the subset text says CQ01NAM='' while the program uses 'DERMATOLOGIC EVENTS'; with the typo knock-on, 84 cells were wrong. (pilot finding: adam-spec-row-to-r-code, errors_found (2nd item))
    • The program computes duration before imputing the start date, so four records have no ADURN; neither the define text nor the excerpt says so. The SAS program also names ADUR where define.xml and the xpt use ADURN. (pilot finding: define-derivation-pseudocode, errors_found (2nd and 3rd items))
    • All 10 synthetic tests built from the spec passed while 273 real cells were wrong. Tests built from the spec cannot find spec defects. (pilot finding: adam-spec-row-to-r-code, errors_found (5th item))
    • In the SAS to R translation, a clean-looking comparison block hid the ADUR versus ADURN name mismatch; it had to be checked by hand. (pilot finding: sas-to-r-translation, errors_found (3rd item))
    More for this stage: SAS and R, worked examples

    Who: Statistical programmer, Lead programmer, Statistician (reviewer)

    SAS and R

    • SAS. The only SAS input in our examples is the public adam_adae.sas, translated to R and checked against the SAS-built dataset. Examples that start from your SAS and keep the output in SAS (for instance R to SAS translation) are planned, not built.
    • R. The verified code at this stage is R (the SAS to R run, R 4.6.1) and Python (pandas) for the define-derivation and spec-row examples. For the spec-row example only the lazy-prompt draft was also run in R; the good draft is Python. The R run caught a failure (a column named .d) that a pandas re-implementation could not.

    Go deeper

  10. Hand-off 5 Paste the ADaM specification into the programming prompt.

    What moves: ADaM datasets and variable definitions, plus the table specification, going to the output programmer and the independent QC programmer.

    ITTFL    Intent-To-Treat Population Flag | text | Y if ARMCD ne ' '. N otherwise

    The check Choose the verification level by risk. Check against the SAP and the shell, not only against the other programmer. Reconcile counts across tables (the N in each column should equal the ADSL count for the population that table uses) and read the output for plausibility.

    Where it broke in the pilot Race was mapped from RACE alone and missed ETHNIC, so 8 table cells were wrong until the output was compared with the CSR. (output-qc-ai-code, errors_found (1st item))

    Shown in the worked example QC a demographics table by independently recomputing it from ADaM. Print the check for this hand-off.

  11. Programs, outputs and independent checks

    Not yet tested in CopilotThe table, listing and figure programs and their outputs, plus QC evidence (independent recomputation, code review or visual check by level).

    Paste in

    Paste the ADaM specification into the programming prompt.

    Prompt

    Below are the ADSL variables and the specification for CSR Table 14-2.01. Write Python (pandas only) that recomputes the table from adam_adsl.xpt independently, with no reuse of any existing program.
    
    Use ITTFL = 'Y'. Columns are Placebo, Xanomeline Low Dose, Xanomeline High Dose and Total. Percentages use the column N from the header. Round half up (SAS-style), not Python's banker's rounding.
    
    Then give a comparison plan: how to check the output against the CSR cell by cell, and the places this kind of table most often differs (population, denominators, category derivation, rounding). If a row cannot be derived from the variables listed, say so instead of guessing.
    
    [variable listing and table specification pasted here]

    Output: CDISCPILOT01 real run, Generated by Claude

    DIAGNOSIS (from the assistant): 88 of 96 cells match. All 8 failures are the Caucasian and Hispanic rows. ADSL.RACE has only three values (WHITE 230, BLACK OR AFRICAN AMERICAN 23, AMERICAN INDIAN OR ALASKA NATIVE 1) and no Hispanic value, so the specification's Hispanic row cannot come from RACE. ADSL.ETHNIC has 12 subjects with HISPANIC OR LATINO, all of them RACE = WHITE. 230 minus 12 is 218, the CSR Caucasian total.

    Where it breaks

    • The first draft mapped Race from RACE alone and missed ETHNIC, so 8 cells (Caucasian and Hispanic rows, all four columns) were wrong. (pilot finding: output-qc-ai-code, errors_found (1st item))
    • In the one-line prompt run, reading the SAS file without an encoding returned silently empty output, a failure that looks like a pass. (pilot finding: output-qc-ai-code, errors_found (2nd item))
    • The Hispanic-precedence rule and the bare-0 print convention are documented nowhere in the CSR; both were handled by assumption and disclosed. (pilot finding: output-qc-ai-code, errors_found (3rd item))
    • Triage by title misled twice: the NPI-X table (p-values in its template) belongs at Level 1, and the continuous lab table (change from baseline) at Level 2. (pilot finding: verification-level-triage, errors_found (1st and 2nd items))
    • Two programmers following one wrong spec agree with each other. Tests built from the spec passed while 273 real cells were wrong; our inference, not something we tested, is that double programming from the same spec would not catch it either. (pilot finding: adam-spec-row-to-r-code, errors_found (5th item))
    More for this stage: SAS and R, worked examples

    Who: Output programmer, Independent QC programmer, Statistician

    SAS and R

    • SAS. The QC example recomputes the table in Python (pandas), reading the SAS xpt file. A SAS-native QC example (PROC COMPARE against an independent program) is planned, not built.
    • R. No R example at this stage yet. Reproducing the primary ANCOVA and the AE table in R is proposed (feasibility checked in planning) but not built; there is no programmed efficacy or AE table in our examples yet.

    Go deeper

  12. Hand-off 6 Paste the checked output and the QC notes into the CSR prompt.

    What moves: Final tables, figures and listings, plus the statistical methods text, going to the medical writer.

    Intent-To-Treat: 86 (100%) | 84 (100%) | 84 (100%) | 254 (100%)
    Safety: 86 (100%) | 84 (100%) | 84 (100%) | 254 (100%)
    Efficacy: 79 (92%) | 81 (96%) | 74 (88%) | 234 (92%)

    The check Check every number in the text against its table cell. Reconcile N across the synopsis, disposition and section 14 tables, and cross-read 9.7 and 9.8 against the protocol, SAP and amendments.

    Where it broke in the pilot Text omitted that 20 subjects left the Efficacy population, wrote p=0.000, and a model-drafted 9.7 left out the three protocol amendments. (csr-safety-efficacy-text-from-tables, errors_found (3rd and 4th items); csr-methods-section-text, errors_found (2nd item))

    Shown in the worked example CSR results text from Section 14 tables: one worked example on CDISCPILOT01. Print the check for this hand-off.

  13. Clinical study report text and tables

    Not yet tested in CopilotThe clinical study report (ICH E3): methods text in section 9.7, results text, section 14 tables and narratives.

    Paste in

    Paste the checked output and the QC notes into the CSR prompt.

    Prompt

    Draft CSR results text from the tables above, as a first draft for a statistician to check. Write one short paragraph for each of: analysis populations, primary efficacy (ADAS-Cog (11) and CIBIC+), treatment-emergent adverse events, serious adverse events.
    
    Rules: use only numbers that appear in the tables and copy them exactly (n, %, means, SD, differences, CIs, p-values). Do not round or recompute. Keep a neutral tone: report what the tables show, without words such as "significant" unless you say which p-value and which comparison, and without causal claims or conclusions about safety or benefit. Say when a p-value is unadjusted. After each sentence, put the table number in brackets. End with a list of anything you could not tell from the tables (for example, the direction of the scale or what the model for p-values was meant to do).

    Output: CDISCPILOT01 real run, Generated by Claude

    ANALYSIS POPULATIONS
    All 254 randomized subjects (86 placebo, 84 xanomeline low dose, 84 xanomeline high dose) were in the ITT and Safety populations [Table 14-1.01]. The Efficacy population comprised 234 subjects (79 placebo, 81 low dose, 74 high dose), that is 92%, 96% and 88% of each arm respectively [Table 14-1.01].

    Where it breaks

    • A model-drafted section 9.7 covered only part of what the CSR needs (no disposition, baseline, secondary or most safety methods), because the excerpt was cut, and the model did not flag the missing secondary endpoint, disposition or baseline methods. (pilot finding: csr-methods-section-text, errors_found (1st item))
    • The same draft omitted the three protocol amendments (CSR 9.8, p.23) and did not say they were absent from the excerpt. (pilot finding: csr-methods-section-text, errors_found (2nd item))
    • 'No interim analyses were performed' rested on a forward-looking SAP sentence ('will not be performed'). The study record has to confirm it. (pilot finding: csr-methods-section-text, errors_found (4th item))
    • Table-to-text drafting copied about 125 numbers with no wrong data value found, but wrote a clumsy 'p=0.000' (should be p<0.001), did not state that 20 subjects left the Efficacy population, and covered 10 AE rows without noting the omission. (pilot finding: csr-safety-efficacy-text-from-tables, errors_found (1st, 3rd, 4th, 5th items))
    • ICH E3 9.7.1 asks for the analyses planned in the protocol and any changes made before outcome results were available, with the emphasis on what was planned, not on what was used. (literature: https://database.ich.org/sites/default/files/E3_Guideline.pdf)
    More for this stage: SAS and R, worked examples

    Who: Medical writer, Statistician, Clinical lead

    SAS and R

    • SAS. Text stage, so language-neutral. Tables pasted from SAS output work the same as tables from R.
    • R. Nothing language-specific at this stage.

    Go deeper

Print the checks. One short checklist for each hand-off, free to print or share: Hand-off checklists.

Prompts are drafts. Keep a human reviewer on every output. Do not paste confidential or subject-level data into any AI tool.

All worked examples, how we check, notes and disclaimers.