Quantitative Data Analysis Plan

Develop a rigorous and reproducible quantitative data analysis plan in R, including data inspection, cleaning, exploratory analysis, statistical method selection, assumption testing, model evaluation, visualization, and academically responsible interpretation.

Professional Prompt Template

Quantitative Data Analysis Plan

Develop a rigorous and reproducible quantitative data analysis plan in R, including data inspection, cleaning, exploratory analysis, statistical method selection, assumption testing, model evaluation, visualization, and academically responsible interpretation.

Best suited for: ChatGPT Claude Gemini
💬
Ready to Use

Complete Prompt

🪄 Prompt Playground

This prompt has variables that can be replaced with your own information. Copy and use it with your preferred LLM, or try it out in the LearnerBox Prompt Playground.

Act as an experienced Quantitative Researcher, Statistician, and R Data Analysis Consultant.

Develop a complete quantitative data analysis plan for a dataset that will be analysed in R.

Research question:
{{research_question}}

Dataset description:
{{dataset_description}}

Analysis objective:
{{analysis_objective}}

Analysis requirements:

1. Interpret the research question and translate it into clearly defined analytical objectives, outcome variables, predictor variables, control variables, grouping variables, and potential confounders where applicable.

2. Recommend an initial R workflow for importing and inspecting the dataset. Include suitable functions for examining dimensions, variable names, data types, summary statistics, unique values, missingness, duplicates, and obvious coding inconsistencies.

3. Develop a data-cleaning plan covering:
   - variable type conversion;
   - missing-value identification and treatment;
   - duplicate records;
   - invalid or impossible values;
   - inconsistent category labels;
   - outliers;
   - derived variables; and
   - documentation of all transformations.

4. Recommend descriptive statistics appropriate for each variable type. Include measures of central tendency, dispersion, frequency distributions, proportions, confidence intervals, and grouped summaries where relevant.

5. Propose suitable visualizations in R, such as histograms, density plots, box plots, bar charts, scatterplots, correlation plots, grouped comparisons, and diagnostic plots. Explain what each visualization should reveal.

6. Recommend the most appropriate inferential statistical methods for answering the research question. Depending on the data, consider:
   - independent or paired-samples tests;
   - analysis of variance;
   - non-parametric alternatives;
   - correlation;
   - linear regression;
   - logistic regression;
   - count models;
   - repeated-measures methods;
   - survival analysis; or
   - other suitable techniques.

7. Explain why each recommended method is appropriate in relation to the research design, variable types, measurement level, sample structure, and analytical objective.

8. Identify the assumptions associated with the proposed statistical methods and provide R-based procedures for evaluating them. Address normality, independence, linearity, homoscedasticity, multicollinearity, influential observations, proportional hazards, or other relevant assumptions.

9. Recommend appropriate remedies when assumptions are violated, such as transformations, robust procedures, non-parametric tests, alternative model specifications, bootstrapping, or sensitivity analyses.

10. Include a strategy for handling missing data. Distinguish complete-case analysis, simple imputation, multiple imputation, and model-based approaches, and explain when each may be appropriate.

11. Recommend how to report effect sizes, confidence intervals, model coefficients, goodness-of-fit statistics, diagnostic results, and practical significance alongside p-values.

12. Provide an ordered R analysis workflow with commented code templates. Use clear object names and reproducible steps, but do not invent variable names that were not supplied. Where exact names are unavailable, use clearly labelled placeholders.

13. Recommend suitable R packages only when they add clear value. Possible packages may include tidyverse, janitor, skimr, ggplot2, broom, effectsize, performance, car, mice, or discipline-specific packages where appropriate.

14. Explain how the final results should be interpreted in relation to the research question. Clearly distinguish statistical significance, effect magnitude, uncertainty, association, prediction, and causal inference.

15. Conclude with a concise analysis roadmap showing the recommended sequence from data import through final reporting.

Research integrity requirements:

- Do not fabricate data values, statistical results, sample characteristics, model outputs, p-values, confidence intervals, effect sizes, or conclusions.
- Do not claim that an analysis has been conducted unless the dataset and executable results are available.
- Clearly distinguish a proposed analysis plan from completed statistical analysis.
- Do not infer causation from correlational or observational evidence unless the research design supports causal identification.
- Identify situations where statistical consultation, subject-matter expertise, or further methodological review is advisable.
- Explain uncertainty, limitations, and alternative analytical choices transparently.
- Use formal academic language suitable for theses, dissertations, journal articles, research reports, and reproducible data science projects.

Present the final output with:

- research question interpretation;
- variables and analytical objectives;
- recommended R packages;
- data import and inspection plan;
- data-cleaning strategy;
- missing-data strategy;
- descriptive statistics;
- exploratory visualizations;
- inferential analysis plan;
- assumption checks and diagnostics;
- alternative methods for assumption violations;
- effect-size and uncertainty reporting;
- commented R code workflow;
- interpretation guidelines;
- limitations and sensitivity analyses;
- final analysis roadmap.
Personalize the Template

Customization Variables

Replace each variable shown in double curly brackets with accurate information from your own professional context.

{{research_question}}

Research Question

Required

Example: For example: Does weekly study time predict final examination scores after controlling for attendance and prior academic performance?

Provide a focused question that identifies the relationship, difference, prediction, or effect to be investigated.

{{dataset_description}}

Dataset Description

Required

Example: Describe the dataset, sample, unit of analysis, variable names, measurement scales, study design, and any known data-quality issues.

Include the names and meanings of key variables so the recommended R code and statistical methods can be tailored accurately.

{{analysis_objective}}

Analysis Objective

Required

Example: Describe whether the analysis should compare groups, test associations, predict an outcome, estimate an intervention effect, or explore patterns.

State the main statistical purpose and mention any required methods, reporting standards, or software constraints.

What the AI Should Produce

Expected Output

🎯

A comprehensive and reproducible quantitative data analysis plan in R containing variable identification, data inspection and cleaning procedures, missing-data treatment, descriptive statistics, exploratory visualizations, justified statistical methods, assumption checks, model diagnostics, alternative analyses, effect-size reporting, commented R code templates, interpretation guidance, limitations, and a clear step-by-step analysis roadmap.

💡 Important: The quality of the result depends on the completeness, accuracy, and relevance of the information supplied to the AI.
Prompt Profile

Prompt Characteristics

These characteristics describe the type of thinking, customization, and output structure involved in using this prompt effectively.

🧠 Reasoning Depth Advanced
💡 Creativity Low
🛠 Customization High
📚 Output Structure Highly Structured
🎓 Experience Level Advanced
Learn Why It Works

Prompt Anatomy

This breakdown explains how the prompt’s major components work together to guide the AI toward a useful, reliable, and well-structured response.

💼

Role

Positions the AI as a Quantitative Researcher, Statistician, and R Data Analysis Consultant.

📄

Context

Defines the research question, dataset characteristics, analytical objective, variable structure, and requirement for a reproducible R workflow.

🎯

Task

Develops a complete quantitative analysis plan covering data inspection, cleaning, descriptive analysis, visualization, statistical modelling, assumption testing, diagnostics, interpretation, and reporting.

🛡️

Constraints

Prevents fabricated data, statistical outputs, unsupported causal claims, invented variable names, and false assertions that analyses have been completed.

📚

Output Structure

Requires research-question interpretation, variable mapping, R packages, data preparation, descriptive analysis, visualizations, inferential methods, assumptions, diagnostics, alternative analyses, code templates, interpretation, limitations, and an ordered workflow.

🔑

Input Variables

Research question, dataset description, and analysis objective.

Improve the Result

Customization Tips

  1. Provide the exact R data-frame and variable names whenever they are known.
  2. State whether the data come from an experiment, survey, observational study, longitudinal study, or administrative source.
  3. Describe the measurement level and coding of the main outcome and predictor variables.
  4. Mention any required statistical method, reporting guideline, or R package that must be used.
  5. Specify whether the output should include only an analysis plan or also complete executable R code.
  6. Include known issues such as missing values, unequal groups, repeated observations, complex sampling, or small sample size.
🛡️
Responsible Professional Use

Review Before Applying the Output

AI-generated responses can contain errors, omissions, unsupported assumptions, outdated information, or recommendations that do not reflect your jurisdiction or professional context.

Verify calculations, evidence, regulations, standards, policies, and professional recommendations before relying on the result. The qualified professional remains responsible for the final decision.

Continue Exploring

More Data Analysis Prompts

Return to the specialization page to explore additional professional workflows and prompt templates.

Ready to Put This Prompt to Work?

Customize the template for your professional context or open it directly in the Prompt Playground for guided AI practice.