Spss analysis workflow

From ahang1598/doubao-workbuddy-qwenwork-skills · View interactive version

Spss analysis workflow is an AI agent skill from the GitHub repository ahang1598/doubao-workbuddy-qwenwork-skills. Use when the user asks for SPSS statistical analysis from data files, Excel, SPSS output, or screenshots, especially with keywords such as SPSS语法, 变量名核对, 问卷量化, 缺失值处理, 统计方法选择, 论文返修, 结果不一致, or 截图报错.

How to use this skill

Skill file

SPSS Analysis Workflow

Use this workflow for medical, education, psychology, public-health, nursing, agriculture, and other research tasks that need variable inspection, SPSS syntax or menu steps, output verification, and manuscript-ready reporting.

1. Ingest files, screenshots, and study design

  1. Read the latest attached data file, variable view, SPSS output, or screenshot before giving final syntax or conclusions.
  2. Extract a working audit sheet: file/version, sample size, row identifier, variable names, labels, value labels, missing codes, grouping/time structure, and the user's stated research question.
  3. For screenshots, first transcribe the visible error/output text and current SPSS dialog; then give the smallest next action.

Concrete conventions:

2. Build the variable map and quantitative coding plan

  1. Map variables into outcome, grouping factor, covariate, mediator, moderator, repeated-measure time/condition, questionnaire item, manipulation-check item, and attention-check item.
  2. Preserve original text columns when recoding; create numeric target variables with clear variable labels and value labels.
  3. For scale or questionnaire work, document item membership, reverse scoring, excluded checks, score range, and whether totals or means are used.

Concrete conventions:

3. Check data quality and effective sample size

  1. Run frequencies/descriptives before method selection: unique values, missing counts, impossible ranges, duplicate IDs, row counts per group/time, and whether filters or deleted rows are active.
  2. State the deletion rule that each analysis uses: listwise deletion, pairwise/indicator-specific deletion, or complete-case analysis.
  3. If SPSS reports “不存在有效个案”, inspect whether all candidate variables are strings, value labels were entered without numeric values, user-missing values exclude all rows, filters/weights/split-file are active, or listwise deletion removes every row.

Concrete conventions:

4. Match statistical method to design and assumptions

  1. Choose the method from the research design and variable types, not from the user's preferred button: descriptive statistics, t-test/ANOVA, nonparametric test, chi-square/Fisher, correlation, linear/logistic regression, ROC, repeated-measures GLM, mixed model, PCA/factor analysis, cluster analysis, or mediation/moderation model.
  2. State the method rationale and prerequisite checks: normality, homogeneity, paired/repeated structure, sparse categories, multicollinearity, model encoding direction, or factorability.
  3. When the user's proposed method is inappropriate, explain the design mismatch and provide the closest valid SPSS route.

Concrete conventions:

5. Produce executable SPSS syntax or menu steps

  1. Prefer reproducible SPSS syntax; add menu paths when the user is learning SPSS or sends screenshots of the interface.
  2. Include import, recoding, variable/value labels, missing values, compute/restructure commands, assumption checks, and final analysis commands as separate blocks.
  3. When targeting another statistical tool from SPSS-prepared data, still keep the SPSS data preparation traceable.

Concrete conventions:

6. Verify output and reconcile inconsistencies

  1. Read the returned SPSS output or screenshot; extract only visible or computed statistics: N, M, SD/SE, test statistic, df, p, CI, effect size, model coefficients, and table labels.
  2. Cross-check output against the data and manuscript table/prose: same variable, same coding direction, same sample, same deletion rule, same rounding.
  3. If output is unavailable, provide expected workflow and verification points, not fabricated results.

Concrete conventions:

7. Write manuscript text, table notes, and revision replies

  1. Convert verified outputs into methods text, results paragraphs, tables, figure notes, and reviewer replies.
  2. Preserve actual statistical direction, significance, N, p formatting, CI, units, group labels, and missing-data notes.
  3. For translation or polishing, keep technical terms and statistical claims equivalent to the source; do not add unverified causal or independent-risk claims.

Concrete conventions:

Boundaries and refusals

Concrete conventions:

Minimal example

User: “这个 AOFAS Excel 用 SPSS 做非参数检验,为什么探索提示不存在有效个案?”

Response pattern:

  1. Read the Excel and list actual columns/options.
  2. Confirm whether aofas_total is numeric; if not, recode raw items first.
  3. Code (跳过) in follow_day as 0 for baseline, not missing.
  4. Compute pain_score, function_score, the remaining seven AOFAS dimensions, and aofas_total as the nine-dimension sum.
  5. Use frequencies to verify nonmissing aofas_total and follow_day, then run Explore/nonparametric tests with the correct deletion rule.
  6. Only after SPSS output returns, write the result sentence with the observed statistic, P value, and effective N.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.