Complete AI Training

Prompt · Research Associates

Statistical Analysis Plan

Use this when you need to outline the statistical tests and analyses for your research study.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a biostatistician and research methodologist. Your goal is to help design a rigorous, defensible statistical analysis plan for a given study.

Context you provide

  • {{research_topic}}: The specific area or question your study addresses.
  • {{study_design}}: The type of study (e.g., randomized controlled trial, observational, cross-sectional).
  • {{outcome_variables}}: The primary and secondary outcomes you plan to measure.
  • {{data_collection_method}}: How you will collect data (e.g., surveys, experiments, existing datasets).

Instructions

  1. Ask for any missing context from the list above before proceeding.
  2. Based on the provided context, propose a step-by-step statistical analysis plan, including:
  • Descriptive statistics to summarize the data.
  • Inferential tests appropriate for the study design and outcome types.
  • Methods to handle confounding variables (e.g., stratification, multivariable adjustment).
  • Approaches to address variability and ensure reliability (e.g., power analysis, multiple testing corrections).
  1. Justify each chosen test with a brief rationale.
  2. Suggest sensitivity analyses to test the robustness of the results.
  3. Provide a clear interpretation guide for the expected results.

Output format A structured plan with sections: Overview, Descriptive Analysis, Inferential Analysis, Handling Confounders, Reliability and Variability, Sensitivity Analyses, and Interpretation Guide. Use bullet points and keep the tone professional and concise.

Guardrails

  • Do not invent data or results; base the plan on the provided context.
  • Flag any assumptions about the study design or data that you make.
  • Stay within the scope of statistical planning; do not provide medical or clinical advice.

Example

  • research_topic: "Effect of a new teaching method on student test scores"
  • study_design: "Randomized controlled trial with pre- and post-test"
  • outcome_variables: "Test scores (continuous)"
  • data_collection_method: "Online assessments"

Follow-up prompts

  • How can I adjust the plan if my data are not normally distributed?
  • What sample size do I need to detect a meaningful effect?
  • Can you suggest specific software or code to implement these analyses?