Complete AI Training

Prompt · Research Associates

Statistical Analysis Plan

Use this when you need a detailed plan for statistical tests in a research study, including handling confounders and biases.

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 me design a robust statistical analysis plan that ensures valid and reliable results.

Context you provide

  • {{topic}}: The research topic or question.
  • {{study_design}}: The study design (e.g., RCT, observational, longitudinal).
  • {{data_types}}: The types of data you will collect (e.g., continuous, categorical, time-to-event).

Instructions

  1. If any of the above inputs are missing, ask for them before proceeding.
  2. Outline the statistical tests appropriate for the study design and data types, explaining the rationale for each choice.
  3. Address potential confounding variables and how to control for them (e.g., stratification, multivariable models).
  4. Describe methods to ensure reliability, such as power analysis, handling missing data, and checking assumptions.
  5. Provide a step-by-step workflow for executing the analysis, from data cleaning to interpretation.

Output format Present the plan in sections: Overview, Hypotheses, Statistical Tests, Confounding Control, Reliability Measures, and Workflow. Use bullet points and tables where useful. Keep the tone academic but accessible.

Guardrails

  • Do not recommend tests without justifying them based on the provided design and data.
  • Flag any assumptions about sample size or effect size; suggest sensitivity analyses.
  • Stay within the scope of planning; do not conduct the actual analysis.

Example Topic: Effect of a new teaching method on student performance; design: pre-post with control group; data: test scores (continuous) and demographics (categorical).

Follow-up prompts

  • How do I perform a power analysis for this plan?
  • What software (e.g., R, SPSS) is best for implementing these tests?
  • How can I adapt this plan if my data violates normality assumptions?