Use-case directory
AI prompts for statisticians and statistical programmers. Each entry shows the prompt, what to verify, how it fails and how much evidence stands behind it.
Showing 40 of 40 entries.
No entries match. Try fewer filters or a different word.
Workflows with worked examples
The five full workflow pages. Only the SAP prompt has been tested on a live assistant, once. The other four have checked facts and untested prompts. How we check.
Draft a SAP skeleton from a protocol synopsis, with open questions flagged
Tested by StatAgentHigh risk
AI turns a protocol synopsis into a SAP outline that tags what comes from the protocol and lists every undecided item as an open question. The statistician reacts to a draft instead of a blank page.
Translate a SAS program to R and prove the numbers match
Facts checkedHigh risk
AI translates a SAS program to R with comments at every point where SAS and R behave differently, then writes comparison code. The proof step, not the translation, is the safeguard.
Generate table, listing and figure shells from SAP text with placeholders only
Facts checkedMedium risk
AI drafts TLF shells from SAP text with placeholders only and lists undefined conventions as open questions. Shells are repetitive and rule-based, which makes them easy to check.
QC a statistical table by having AI write independent recompute code
Facts checkedHigh risk
Instead of asking AI whether numbers look right, ask it to write independent code that recomputes each table cell and a reconciliation file. You run the code and review the differences.
Prepare for reviewer questions by asking AI to act as a skeptical reviewer
Facts checkedMedium risk
AI acts as a skeptical statistical reviewer, lists likely questions grouped by topic and drafts response outlines. It finds gaps quickly; the team decides which are real.
More prompts (35)
Brainstorm sensitivity analyses for a stated primary analysis
Untested ideaMedium risk
AI lists candidate sensitivity analyses for a stated estimand and missing-data approach, with the assumption each one probes. The statistician selects, justifies and pre-specifies; the list is a prompt for thinking.
Build a SAP-to-TFL traceability matrix and list gaps in both directions
Untested ideaMedium risk
AI lists each analysis in the SAP and matches it to an output in the TFL list, flagging analyses with no output and outputs with no SAP source. A human confirms every link.
Check estimand wording against the ICH E9(R1) estimand attributes
Untested ideaMedium risk
AI reads an objective and endpoint statement and reports which of the four estimand attributes are missing, ambiguous or inconsistent with the stated analysis. It does not choose strategies.
Check footnotes and abbreviations for consistency across a set of tables
Untested ideaLow risk
AI scans a set of footnotes and flags the same concept worded differently, undefined abbreviations and model descriptions that conflict with the SAP.
Check numbers quoted in report text against the source table
Untested ideaHigh risk
AI compares numbers in a draft narrative to a table you paste and lists mismatches. Because chat models can misread numbers, the check supports but does not replace a scripted comparison.
Check variable labels and names for consistency across ADaM datasets
Untested ideaLow risk
AI scans a table of dataset, variable and label and lists variables with different labels across datasets, over-length labels and spelling variants. A script can check length; AI helps with wording.
Check variable values against CDISC controlled terminology lists
Untested ideaMedium risk
AI compares the distinct values in a coded variable with a controlled terminology list you supply and groups mismatches. The list comes from CDISC; the AI should not recall it from memory.
Compare an ADaM spec with the SAP to find missing derivations
Untested ideaHigh risk
AI reads SAP definitions of populations, windows and derived endpoints and compares them with ADaM specification rows, flagging missing, conflicting or ambiguous derivations. The statistician decides what counts as a real gap.
Compare two candidate models and list trade-offs for a stated question
Untested ideaMedium risk
AI lays out assumptions, strengths, weaknesses and interpretation of two models for a described problem, for example ANCOVA versus MMRM. It supports thinking; the choice rests on the estimand and the data.
Convert external ADaM code and specs to internal templates, with human review
Reported in literatureHigh risk
A Merck framework uses an LLM API plus rule-based fixers to convert acquired-study ADaM code and specs to internal standards. Statisticians review ambiguous derivations. It is a company workflow, not a chat prompt.
Critique a SAP against ICH E9 principles to find gaps
Reported in literatureMedium risk
AI reads a SAP and lists where it is silent or unclear against ICH E9 topics. One small study found clear output with some contextual errors, and a second model scored its clinical interpretability far lower than the first model did, so use it as a prompt for human review.
Document an undocumented SAS macro in plain language
Untested ideaLow risk
AI reads a macro and drafts a header comment: purpose, parameters, inputs, outputs, side effects and known limits. The programmer verifies by running the macro; documentation that sounds right can be wrong.
Draft a plain-language summary of a statistical result for non-statisticians
Reported in literatureMedium risk
AI rewrites an approved result statement in plain language for a lay audience. One preprint reported lower reader comprehension than human-written summaries, so a statistician and the audience must check meaning.
Draft a SAP change log from two versions of the text
Untested ideaMedium risk
AI compares two SAP versions and lists changes by section with old and new wording. A tracked-changes report or diff tool is the reliable source; AI helps summarize rationale prompts.
Draft clear data queries from a described discrepancy
Untested ideaMedium risk
AI turns a discrepancy description (variable, expected rule, observed pattern) into a neutral query text for data management. The reviewer checks the facts and wording; patient data are not pasted.
Draft sample-size wording from numbers computed in validated software
Untested ideaHigh risk
AI drafts the prose of a sample-size section from inputs you supply, such as alpha, power and effect size. It must never calculate the number; a validated tool does that.
Draft the structure of a response to a regulatory statistical question
Untested ideaHigh risk
AI builds a response skeleton from the question and the facts you supply: position, evidence, analyses to cite and gaps. Wording, positions and every number come from the team, not the model.
Draft training material for a team method or SOP step
Untested ideaLow risk
AI drafts learning objectives, a lesson outline and quiz questions for a method or procedure you describe. You supply the facts and verify examples; the output is an outline, not authoritative teaching.
Explain a statistical method at a stated level, then verify against a reference
Untested ideaLow risk
AI explains a method such as MMRM, MI or gatekeeping at a chosen level, with a small worked example. Verify against a textbook or guideline; errors in confident explanations are common.
Extract design attributes from a protocol or SAP into a summary table
Reported in literatureMedium risk
AI pulls design, population, comparator and sample size from long protocol documents into a table with quoted evidence. One small published test found good extraction but some errors.
Find the right pharmaverse or admiral function for an ADaM derivation
Untested ideaMedium risk
AI suggests which admiral or pharmaverse functions fit a derivation and sketches a call. It can name functions that do not exist, so you confirm each against the package documentation.
Generate unit tests for an R analysis function and run them
Untested ideaMedium risk
AI drafts testthat tests for an R function from its description, including edge cases. A published Java study found many generated tests invalid and we found no R or clinical test, so you must run and review every test.
Match SAP endpoints to CRF fields and list gaps in both directions
Untested ideaMedium risk
AI maps each SAP endpoint to the CRF fields or define.xml variables that would hold the data and lists endpoints without fields and fields never used. Use field lists, not raw PDFs.
Prepare a checklist for an information request or data-package question
Untested ideaMedium risk
AI turns the text of an information request into an itemized checklist of deliverables, owners and open questions. It organizes the work; it does not decide what to provide.
Review a data listing for patterns that need follow-up
Untested ideaHigh risk
AI scans a de-identified or simulated listing for out-of-range values, impossible dates and inconsistent records. A script is more dependable for counts; AI suggests which checks to code.
Review a define.xml for readability and obvious inconsistencies
Untested ideaMedium risk
AI reads the text of a define.xml or its table export and flags missing descriptions, inconsistent derivation wording or labels. It cannot validate the file; a CDISC validator and human review do that.
Review a statistical program for logic errors and hidden assumptions
Untested ideaMedium risk
AI reads an R or SAS program and lists suspected logic problems, unclear sections and undocumented assumptions, with line references. It is a prompt for human review, not independent QC.
Review draft TLF shells against the SAP for omissions and inconsistencies
Untested ideaMedium risk
AI compares a shell set with SAP text and lists endpoints without outputs, population or denominator mismatches, and unclear titles. It is a second pair of eyes for a statistician who owns the review.
Sanity-check a model assumption and choose a diagnostic to run
Untested ideaLow risk
AI lists the assumptions of a named model, explains how each can fail in a described dataset, and suggests diagnostics. You run the diagnostics; the AI does not judge your data.
Translate long SAS programs in chunks and watch for silently skipped sections
Reported in literatureHigh risk
Practitioners report that ChatGPT handles short, straightforward SAS well but may omit or skip long or complex sections. Splitting programs into pieces and checking coverage is their recommended practice.
Translate R analysis code to SAS and verify the output matches
Untested ideaHigh risk
AI translates an R script to SAS for teams whose submission environment is SAS. The same proof step as SAS-to-R applies: run both and compare. Direction-specific traps include NA handling and rounding.
Translate SAS to R through a reviewed design document instead of line by line
Reported in literatureHigh risk
AI first writes a plain-language design document from the SAS program, a human reviews it, then AI writes R from the document. A Merck paper reports less rework than direct translation on its own unspecified cases.
Turn meeting notes or a transcript into minutes and action items
Untested ideaLow risk
Microsoft documents that Copilot in Teams meetings can summarize discussion and suggest action items. Check each item and owner; the page states no accuracy figures.
Validate AI-proposed SDTM mappings with CDISC CORE on synthetic data
Untested ideaHigh risk
A proposed framework has an LLM draft SDTM mappings from CRF and transfer specs, then runs CDISC CORE checks on synthetic data and feeds failures back. It is a design; the paper reports no results.
Verify every citation in an AI-drafted regulatory or methods text
Reported in literatureHigh risk
A checking routine: extract every reference or guideline mention, mark it unverified, and confirm against the original source. Motivated by a study finding many fabricated references from an older ChatGPT model.
Looking for news instead? See What's new.