Data Analysis Interpreter

Acts as a statistician to choose, run conceptually, and interpret the right analyses for your research data.

// prompt
You are a senior applied statistician and data analyst. Help me analyze and interpret research data for **{{study_topic}}**, choosing methods that fit the data and the question rather than defaulting to a single test. ## Context I'm Providing - **Research Question**: {{research_question}} - **Dataset Overview**: {{dataset_description}} - **Variables & Types**: {{variables_and_types}} (continuous, categorical, ordinal — name the outcome and predictors) - **Sample Size**: {{number_of_observations}} - **Known Data Issues**: {{missing_values_and_outliers}} - **Field / Audience**: {{field_or_discipline}} ## What I Need You To Do ### 1. Plan the Analysis - Restate my question as a precise statistical hypothesis (null and alternative). - Recommend the appropriate test or model and justify it from data type, distribution, and design. - List the assumptions it requires and how to check each one. ### 2. Descriptive Summary - Suggest the right measures of central tendency and variability for each variable type. - Flag distribution concerns: skewness, kurtosis, normality, and notable correlations. ### 3. Inferential Interpretation - Explain how to read the p-value, confidence interval, and **effect size** together. - Distinguish **statistical** from **practical / clinical** significance for my context. - State the limitations, confounders, and assumptions that could weaken the conclusion. ### 4. Visualization - Recommend 2-3 chart types matched to the variables, with labeling and accessible color guidance. ## Output Format - A short **Recommended Approach** paragraph. - A **Step-by-Step Plan** as a numbered list. - A **Plain-Language Interpretation** of what the results would mean for a non-statistician. - An **Assumptions & Caveats** checklist. If anything essential is missing or ambiguous, ask me targeted clarifying questions before analyzing. Do not invent data values or fabricate results.
Fill in the variables

Example run

Generated by Claude Opus 5.5 on November 24, 2026

Inputs used

Study topic
Effect of a 12-week Mindfulness-Based Stress Reduction (MBSR) program on burnout among hospital nurses
Research question
Does participation in a 12-week MBSR program lead to a statistically and clinically meaningful reduction in emotional exhaustion burnout scores (MBI-EE) at Week 12, compared to a waitlist control group, after accounting for baseline burnout, years of nursing experience, and shift type?
Dataset description
Data come from a randomized controlled trial run at Lakeview Regional Medical Center (a 450-bed hospital) between March and September 2026. Registered nurses from five units (ICU, Emergency, Oncology, General Medicine, and Pediatrics) were invited by email to participate in a workplace burnout-reduction study. 184 nurses consented and were randomized 1:1 using a computer-generated sequence to either (a) a 12-week Mindfulness-Based Stress Reduction (MBSR) program consisting of weekly 2-hour group sessions plus daily 15-minute guided audio practice, or (b) a waitlist control group that received the program after the study concluded. All participants completed the Maslach Burnout Inventory (Emotional Exhaustion subscale, MBI-EE, range 0-54) and a demographic/work-history questionnaire at baseline (Week 0) and again at Week 12. Research coordinators also logged self-reported weekly mindfulness practice minutes for the intervention arm and verified shift schedules from the hospital's staffing system (Kronos) to confirm shift type and average weekly hours. The dataset is stored as a single de-identified CSV (one row per participant) with columns for participant ID, treatment arm, unit, shift type, demographic variables, baseline and Week-12 MBI-EE scores, and practice-minutes logs where applicable. Two nurses in the intervention arm reported a family emergency during week 6-7 that interrupted their practice schedule; this is flagged in a notes column but they remained in the analysis per intention-to-treat principles.
Variables and types
Outcome: Week-12 MBI-EE score (continuous, 0-54). Key predictor: treatment arm (categorical/binary: MBSR vs waitlist control). Covariates: baseline MBI-EE score (continuous), years of nursing experience (continuous), shift type (categorical: day/night/rotating), hospital unit (categorical: ICU/ER/Oncology/General/Pediatrics), age (continuous), sex (categorical: male/female/other), weekly mindfulness practice minutes (continuous, intervention arm only, with missingness)
Number of observations
184 nurses enrolled and randomized; 162 completed both baseline and Week-12 assessments and are included in the primary analysis (82 MBSR, 80 control)
Missing values and outliers
22 of 184 enrolled nurses (12%) did not complete the Week-12 follow-up survey (14 from control arm, 8 from MBSR arm), leaving a final analytic sample of 162; dropout reasons (unit transfer, leave of absence) were logged and appear unrelated to baseline burnout severity (checked via t-test, p=.41). Three participants have baseline MBI-EE scores above 50 (near ceiling) flagged as potential outliers but retained since they reflect plausible real-world burnout severity in ICU staff. One data-entry error (negative weekly practice minutes, -15) was corrected to missing/NA after review of the paper log. No missing data in treatment arm, unit, or demographic columns.
Field or discipline
Nursing / Occupational health psychology (public health intervention research)

Analysis Plan: MBSR vs. Waitlist Control on Nurse Emotional Exhaustion (MBI-EE)

Clarifying Questions

None of these block the plan below, but several change specific choices. Each question notes where it matters.

  1. Was randomization stratified (e.g., by unit or shift type)? If so, the stratification factors must be covariates in the primary model. This determines whether unit goes into the model.
  2. Is there a pre-registered protocol or statistical analysis plan (SAP)? Does it name a primary covariate set and a minimal clinically important difference (MCID)? Pre-specification decides which covariates are "primary" and which are "sensitivity."
  3. Do you have baseline data for all 184 randomized nurses? The description implies yes. If so, a true intention-to-treat (ITT) analysis is possible, and it should be the primary analysis. See Step 4.
  4. How many MBSR groups (cohorts or facilitators) ran? For example, 82 nurses across 5 groups of about 16. This determines whether you need to model clustering in the intervention arm.
  5. How are practice minutes stored? Is it 12 weekly columns or a single average? How much is missing, apart from the corrected −15 entry?
  6. Did any control nurses work alongside MBSR nurses on the same unit and shift? This bears on contamination.
  7. Preferred software (R, Stata, SPSS, SAS)? I can tailor code.

Recommended Approach

The primary analysis should be an ANCOVA-type linear regression. Week-12 MBI-EE is the outcome. Treatment arm is the key predictor, adjusted for baseline MBI-EE, years of experience, shift type, and any stratification factors. This is the standard, most efficient analysis for a two-arm pre/post RCT. It is more powerful than comparing change scores or Week-12 scores alone, and it handles regression to the mean.

Because 22 of 184 randomized nurses (12%) are missing Week-12 data, and dropout differs by arm (14 vs. 8), the 162-person complete-case analysis is not actually ITT. The primary analysis should use all 184 randomized participants, via multiple imputation or an equivalent constrained longitudinal mixed model. Complete-case and missing-not-at-random (tipping-point) analyses then serve as sensitivity checks.

Report three things for the treatment effect:

  • The adjusted mean difference in raw MBI-EE points with a 95% CI. This is the headline number.
  • A standardized effect size.
  • A comparison against a pre-specified MCID.

Mindfulness practice minutes are a post-randomization, intervention-only variable. They must not be a covariate in the primary model and belong only in exploratory dose-response or adherence analyses.


Step-by-Step Plan

Part 1 — Plan the Analysis

1. Formal hypotheses. Let β₁ be the adjusted mean difference in Week-12 MBI-EE (MBSR minus control), conditional on baseline MBI-EE, years of experience, and shift type, in the randomized population.

  • H₀: β₁ = 0. No difference in adjusted Week-12 MBI-EE between arms.
  • H₁: β₁ ≠ 0. Use a two-sided test at α = .05; this is standard even though benefit is expected.
  • Clinical question (estimation, not a second test): Is β₁ more negative than −MCID? Lower MBI-EE means less burnout, so a benefit shows up as a negative β₁. Answer this by where the 95% CI sits relative to the MCID, not with another p-value.

2. Model specification.

Week12_EE = β0 + β1·Arm + β2·Baseline_EE + β3·YearsExp + β4·Shift(night) + β5·Shift(rotating) [+ Unit, if stratified] + ε

Why this model fits:

  • Outcome type: Continuous, bounded 0–54, and the summed scale behaves approximately interval. Linear models are standard for MBI-EE.
  • Design: Individually randomized parallel-group trial with a baseline measure. ANCOVA is the recommended analysis in CONSORT and EMA/FDA covariate-adjustment guidance.
  • Why not a change-score t-test: Change scores are less efficient unless the baseline–follow-up correlation is near 1. They also do not fully correct for chance baseline imbalance.
  • Why not repeated-measures ANOVA: With only two time points, its time × arm interaction equals a change-score analysis and has the same efficiency loss.
  • Covariate discipline: Keep the covariates fixed in advance. Add age, sex, or unit only if they are pre-specified or stratification factors. Choosing covariates after seeing the results inflates Type I error. Age and years of experience will likely be highly collinear, so including both adds little.
  • Standard errors: Use heteroscedasticity-robust (HC3) standard errors as a default safeguard. They cost little at n ≈ 160–184.

3. Assumptions and how to check each.

Assumption How to check If violated
Linear baseline → outcome relationship Scatterplot with LOESS; residuals vs. baseline Add a spline or quadratic baseline term
Homogeneity of regression slopes (baseline effect same in both arms) Test an Arm × Baseline_EE interaction (report it, but do not let it drive the primary model) Report the interaction as moderation; the main-effect estimate at mean baseline is still interpretable if baseline is centered
Independence of observations Design review: MBSR delivered in groups, so intervention-arm nurses share facilitator and group dynamics. Also consider nurses within units Partially nested mixed model: random effect for MBSR group, control participants as singleton clusters. Report the group-level intraclass correlation (ICC)
Homoscedasticity Residual-vs-fitted plot; compare residual SD by arm HC3 robust SEs (already planned)
Approximately normal residuals Q–Q plot, histogram of residuals. Do not test normality of raw Week-12 scores At this n the CLT protects inference on β₁; bootstrap CI as a sensitivity check
No influential observations Cook's distance, leverage, DFBETAs, especially for the 3 baseline scores >50 Keep them (they are valid). Report a sensitivity analysis with robust (M-estimator) regression
Floor/ceiling effects Count scores at 0 or near 54 at Week 12 If substantial, consider censored (Tobit) regression as a sensitivity analysis
Low multicollinearity Variance inflation factors (VIFs); correlation of age with years of experience Drop one of a highly collinear pair
Missing at random (MAR) for multiple imputation Logistic model of dropout on arm, baseline EE, unit, shift, and experience Delta-adjusted tipping-point analysis (Step 9)

Part 2 — Descriptive Summary

4. Participant flow and missing data (do this first).

  • Draw a CONSORT flow diagram: 184 randomized → 92/92 per arm. Report 8 lost from MBSR and 14 from control, with logged reasons.
  • Dropout is differential: 15.2% in control vs. 8.7% in MBSR. Report this with Fisher's exact test or a risk difference with CI.
  • The existing t-test (p = .41) is weak evidence on its own. A non-significant test of 22 vs. 162 people is underpowered and cannot show "no relationship." Supplement it with:
    • standardized mean differences in baseline EE between completers and dropouts, by arm;
    • a logistic regression of dropout on arm, baseline EE, unit, shift, and experience.

5. Table 1: baseline characteristics by arm.

  • Continuous, roughly symmetric (age, baseline MBI-EE): mean (SD). Add median (IQR) for MBI-EE because of the near-ceiling cluster.
  • Continuous, likely skewed (years of experience, practice minutes, weekly hours): median (IQR) plus range.
  • Categorical (arm, unit, shift, sex): n (%). Watch for sparse cells, such as "other" sex or rotating shift within some units. Collapse categories for modeling only if pre-specified.
  • Do not run significance tests on baseline differences. CONSORT advises against it, because any imbalance under randomization is chance by definition. Instead, comment on the size of imbalances, e.g., standardized differences above about 0.1–0.2.
  • Show Table 1 for all 184 randomized nurses and, separately or as a column, for the 162 completers.

6. Distribution checks.

  • MBI-EE (both time points): Report skewness, kurtosis, histograms, and the counts near 0 and near 54. Baseline scores in a stressed hospital population are often left-skewed, piled toward the high end. Week-12 MBSR scores may move toward the floor.
  • Practice minutes:
    • These are probably right-skewed with a spike near zero.
    • Describe adherence as a median (IQR) and the proportion meeting a pre-defined threshold, such as ≥75% of prescribed practice.
    • Report missingness by week.
    • Note the corrected −15 entry and the 2 flagged nurses with interrupted practice.
  • Correlations to inspect:
    • Baseline vs. Week-12 EE. A higher correlation means larger efficiency gains from ANCOVA.
    • Age vs. years of experience, for collinearity.
    • Baseline EE by unit and shift. ICU and ER may run higher, which matters for interpretation and for possible moderation.

Part 3 — Inferential Interpretation

7. Primary analysis (ITT, n = 184).

The preferred option is multiple imputation (MI):

  • Use m ≥ 20–50 imputations.
  • The imputation model should include arm, baseline EE, all model covariates, unit, and auxiliary variables that predict dropout. Impute separately by arm, or include arm interactions.
  • Fit the ANCOVA in each imputed dataset and pool estimates with Rubin's rules.

The equivalent alternative is a constrained longitudinal data analysis (cLDA):

  • This is a linear mixed model of baseline and Week-12 EE together. It forces equal baseline means, which is valid under randomization.
  • It uses all 184 participants under MAR without explicit imputation.

8. Effect-size reporting.

  • Primary: the adjusted mean difference in MBI-EE points with a 95% CI. This is the most interpretable quantity for nurses and managers.
  • Standardized: Cohen's d = adjusted difference ÷ pooled baseline SD, with a CI. Use the baseline SD because it is unaffected by treatment. Say which SD you used, because conventions vary.
  • Variance explained: partial η² is optional. It is less useful clinically and is inflated by the strong baseline covariate.
  • Responder analysis (secondary, pre-specify it):
    • Report the proportion in each arm improving by at least the MCID, or moving out of the "high EE" range. The commonly used MBI-HSS cutoff is ≥27; check it against your manual edition.
    • Give the risk difference and number needed to treat (NNT) with CIs.
    • Maslach and colleagues caution against using MBI cutoffs as diagnoses, so frame this as descriptive.

9. Sensitivity analyses (state them in advance and report them all):

  • a. Complete-case ANCOVA (n = 162): the analysis you currently have.
  • b. Tipping-point / delta-adjusted MI: Assume dropouts in the MBSR arm did worse than MAR predicts by δ points (δ = 1, 2, 3, …). Find the δ at which the conclusion changes. This is the most informative check for missing-not-at-random (MNAR) data.
  • c. Clustering: a partially nested mixed model with a random effect for MBSR group.
  • d. Influence: robust regression, or exclusion of influential points identified by Cook's distance (including the 3 near-ceiling cases).
  • e. Extended covariates: adding unit, age, and sex, to show robustness, not to replace the primary model.
  • f. Per-protocol or adherence-based analysis: label it clearly as non-randomized and susceptible to bias. The 2 flagged nurses stay in all ITT analyses, which you have already done correctly.

10. Exploratory analyses (label them clearly as hypothesis-generating).

  • Moderation: Arm × Baseline EE, Arm × Shift, and Arm × Unit. The trial was not powered for these, so report interaction estimates with CIs, not subgroup p-values.
  • Dose-response (MBSR arm only): regress Week-12 EE on practice minutes, adjusting for baseline.
    • This is observational. Nurses who practice more may differ systematically, for example by being less overloaded to begin with.
    • A causal adherence estimate would need complier average causal effect (CACE) / instrumental-variable methods, using randomization as the instrument and a pre-defined adherence threshold.

11. How to read the p-value, CI, and effect size together.

What you see Interpretation
p < .05; entire 95% CI beyond −MCID Statistically significant and clinically meaningful
p < .05; CI excludes 0 but overlaps the MCID A real effect is likely, but it may be too small to matter clinically. Say so explicitly
p ≥ .05; CI includes 0 and −MCID Inconclusive, not "no effect." The data are consistent with both no benefit and a meaningful benefit
p ≥ .05; CI narrow around 0, excludes −MCID Reasonable evidence of no clinically important effect
  • The p-value answers only whether the data are compatible with exactly zero effect.
  • The CI shows the range of effect sizes compatible with the data.
  • The MCID comparison answers whether the effect matters.
  • Do not compute post-hoc ("observed") power. It is a transformation of the p-value and adds nothing; the CI width already conveys precision.

12. Statistical vs. clinical significance in this context.

  • No universally agreed MCID exists for MBI-EE. Options, in order of preference:

    1. a value pre-specified in your protocol;
    2. an anchor-based estimate from prior literature, which you should cite and verify yourself;
    3. a distribution-based convention such as 0.5 × baseline SD.

    Decide on the threshold before unblinding the results, or report it transparently as post hoc.

  • Practical significance for a hospital also depends on factors beyond the point estimate:

    • Cost and time: 24 hours of sessions plus daily practice, and covering nurses' shifts.
    • Reach: whether the effect holds for night and rotating staff, who may struggle to attend.
    • Durability: Week 12 is immediately post-intervention.
    • Downstream outcomes: turnover, sick leave, and patient safety, none of which were measured here.

Part 4 — Visualization

13. Recommended charts.

  • A. Baseline vs. Week-12 scatterplot with arm-specific ANCOVA lines (the core figure).
    • X-axis: "Baseline MBI-EE (0–54)". Y-axis: "Week-12 MBI-EE (0–54)". Use identical axis ranges on both and add a dashed y = x reference line labeled "no change".
    • Points below the line indicate improvement. The vertical gap between the arm lines is the adjusted treatment effect.
    • Visually checks linearity, homogeneity of slopes, and ceiling/floor clustering.
  • B. Estimate plot: adjusted mean difference with 95% CI.
    • Show the primary (MI) analysis alongside each sensitivity analysis as rows of a forest plot.
    • Add a vertical line at 0 and a shaded band or dashed line at −MCID, labeled "Minimal clinically important difference".
    • This plot shows statistical vs. clinical significance at a glance.
  • C. Paired "slope" or raincloud plot by arm.
    • Individual baseline → Week-12 lines, semi-transparent, over distribution clouds.
    • Shows heterogeneity of response and the near-ceiling participants. Mark the 2 flagged nurses with a distinct symbol only if useful, and disclose it in the caption.
  • Also include: the CONSORT flow diagram (required for RCT reporting).

Accessibility guidance:

  • Use the colorblind-safe Okabe–Ito palette, e.g., MBSR = blue #0072B2 and Control = orange #E69F00.
  • Pair color with a second cue: shape (circle vs. triangle) and line type (solid vs. dashed). Figures should still work in grayscale.
  • Label arms directly on the plot instead of relying only on a legend.
  • Use at least 10–12 pt text at print size.
  • State n per arm, and whether the plot shows observed or imputed data, in the caption.
  • Write alt text that states the main finding, not just the chart type.

Code skeleton (R), to be run on your data; no results are implied:

library(mice); library(sandwich); library(lmtest)
# Primary: MI-based ANCOVA on all 184 randomized
imp <- mice(dat, m = 50, seed = 2026)  # include arm, baseline EE, covariates, auxiliaries
fit <- with(imp, lm(ee_w12 ~ arm + ee_w0 + years_exp + shift))
summary(pool(fit), conf.int = TRUE)

# Complete-case sensitivity with HC3 robust SEs
cc <- lm(ee_w12 ~ arm + ee_w0 + years_exp + shift, data = dat_complete)
coeftest(cc, vcov = vcovHC(cc, type = "HC3")); coefci(cc, vcov. = vcovHC(cc, type = "HC3"))

# Slope homogeneity check
anova(cc, update(cc, . ~ . + arm:ee_w0))

Plain-Language Interpretation (template — fill in once analyzed)

We compared nurses who took the 12-week mindfulness program with nurses waiting to take it. We looked at their emotional exhaustion scores at the end of the 12 weeks and made a fair comparison by accounting for how exhausted each nurse was at the start, how long they had been nursing, and what shifts they worked.

The main result is a single number: how many points lower (or higher) exhaustion was in the mindfulness group, with a range of plausible values around it.

  • If that whole range sits below zero, the program very likely reduced exhaustion.
  • If the whole range is also larger than the amount nurses would actually notice in daily life, the reduction is likely meaningful, not just statistically detectable.
  • If the range includes zero, the study cannot tell us confidently whether the program works. That is different from showing it doesn't.

Because some nurses didn't complete the final survey, and more dropped out of the waiting group, we checked whether the results hold up under different assumptions about those missing nurses. Nurses knew which group they were in and reported their own exhaustion, so some of any improvement could reflect expectations rather than the program itself.


Assumptions & Caveats Checklist

Design and bias

  • Unblinded self-reported outcome with a waitlist control. Expectancy and demand effects could inflate the benefit. A waitlist does not control for attention, group support, or time away from the unit.
  • Group delivery creates clustering in the MBSR arm. Ignoring it understates standard errors; check the group-level ICC.
  • Contamination: control nurses on the same units may have picked up techniques or benefited from calmer colleagues. This would bias the effect toward zero.
  • Volunteer/selection bias: participants were recruited by email invitation. Consenters may be more motivated or more burned out than nonparticipants, which limits generalizability.
  • Single site, one season (March–September 2026) and 5 units. External validity is limited, and seasonal or staffing events affect both arms but may interact with the intervention.
  • Short follow-up: Week 12 shows only immediate post-program effects; durability is unknown.
  • Single subscale: EE is the primary outcome. If depersonalization and personal accomplishment are also analyzed, pre-specify them as secondary and address multiplicity.

Missing data

  • The complete-case analysis (n = 162) is not ITT. Analyze all 184 randomized nurses under MAR.
  • Differential dropout (15.2% control vs. 8.7% MBSR) is reported and modeled.
  • Non-significant dropout t-test (p = .41) is not treated as proof of MCAR. Supplement it with effect sizes and a dropout model.
  • MNAR tipping-point analysis reported.
  • Practice-minutes missingness described. The −15 entry was corrected to NA, which is good practice; document it in an audit trail.

Model assumptions

  • Linearity and homogeneity of slopes checked (Arm × Baseline interaction).
  • Residual normality and homoscedasticity checked, with robust SEs used.
  • Influence of the 3 near-ceiling baseline cases assessed. They are retained, with robust regression as a sensitivity check.
  • Floor/ceiling effects at Week 12 assessed.
  • Collinearity (age vs. experience) checked via VIFs.

Analysis integrity

  • Covariates and MCID are pre-specified, or deviations are disclosed.
  • Practice minutes are excluded from the primary model, because they are a post-randomization mediator measured in one arm only.
  • Subgroup and dose-response analyses are labeled exploratory, with no causal claims from dose-response.
  • The 2 flagged nurses are retained in ITT and excluded only in a clearly labeled per-protocol sensitivity analysis.
  • No baseline significance testing in Table 1.
  • No post-hoc power calculation.
  • Reporting follows CONSORT 2010 and the CONSORT extension for non-pharmacologic treatments, including details of facilitator training and fidelity.

If you can answer the clarifying questions, especially on stratification, number of MBSR groups, pre-specified MCID, and baseline data on the 22 dropouts, I can finalize the model specification. When you share the data or output, I can help run and interpret it.

Related prompts

Science & Research

Experimental Design Planner

Design a rigorous, statistically sound experiment with controls, sampling, analysis plan, and ethics safeguards.

{} 8 vars
Science & Research

Grant Proposal Writer

Draft a persuasive, funder-ready grant proposal with clear objectives, methodology, budget, and evaluation.

{} 10 vars
Science & Research

Literature Review Synthesizer

Synthesize a critical, structured literature review on any topic with themes, methods, and research gaps.

{} 6 vars
Science & Research

Research Ethics Advisor

Expert guidance on research ethics, IRB approval, and responsible conduct for your study.

{} 8 vars