Automated summary
Guides a user from a research question to a recommended statistical model family, then lays out a hierarchical model sequence from null to fully specified.
Strengths
- Explicit decision tree keyed on outcome type, predictors, and design (independent, repeated measures, nested)
- Spans many methods: ANOVA/ANCOVA, regression and GLM, mixed effects, CCA/RDA/PERMANOVA, factor analysis and SEM
- Delivers comparable model skeletons with worked patterns in R, Python, and Julia
- Structured intake phase that only asks for genuinely missing information
Limitations
- Produces an analysis plan and model formulas, not executed models or interpretation of results
- Heavily dependent on the plugin's bundled reference files (test-selection, model-hierarchy, anova-family, etc.) being available
- Assumes the user can already describe their design and variable types; very ambiguous cases may need several rounds of clarification
Use when you are unsure which statistical test or model fits your study and want a justified recommendation plus a sequence of nested models to compare.
Avoid it if you want code actually run against your dataset or an interpretation of results you already have, rather than upfront analysis planning.
Security analysis
SafeThe skill is a statistical planning assistant that only declares Read, Grep, and Glob — no Bash, Write, or network tools. It reads reference markdown files from the plugin directory and emits analysis guidance and code stubs for the user to run themselves. No destructive commands, no exfiltration, no obfuscation, no safety-disabling instructions. The only minor note is that the reference paths include a ../.. traversal to a shared references directory, but this is read-only documentation lookup with no execution risk.
No concerns found
How this analysis is madeExamples
I have a continuous outcome (reaction time), two between-subject groups, and each participant is measured at three time points. Which statistical model should I use, and can you lay out a null-to-full model sequence in R?I'm predicting a binary outcome (converted / not converted) from a continuous score and a categorical condition, with users nested in regions. Should this be logistic regression or a GLMM? Give me the hierarchical test sequence.I have about 20 correlated continuous variables and no clear outcome — I want to find underlying structure. Should I use PCA, EFA, or CCA, and what does the model progression look like?name: plan-analysis description: User describes a research question — what they're trying to predict or explain, what variables are involved, and what the study design looks like — and wants a recommended statistical model with a hierarchical test sequence from null to fully specified. Use this skill whenever the user asks which statistical test or model to use, wants to plan an analysis, needs help choosing between ANOVA/regression/mixed effects/CCA/factor analysis, or describes outcome and predictor variables and wants a structured modelling approach. argument-hint: [outcome variable(s) and predictor description] user-invocable: true disable-model-invocation: false allowed-tools: Read, Grep, Glob
Skill: plan-analysis
Route a research question to the right statistical family and produce a hierarchical model sequence — null through fully specified — that the user can run and refine.
Reference files (load as directed below):
${CLAUDE_PLUGIN_ROOT}/references/test-selection.md— decision tree: outcome × predictors × design → method${CLAUDE_PLUGIN_ROOT}/references/model-hierarchy.md— null → full model patterns and comparison tests (R/Python/Julia)${CLAUDE_PLUGIN_ROOT}/references/anova-family.md— ANOVA, ANCOVA, RM-ANOVA, MANOVA, MANCOVA${CLAUDE_PLUGIN_ROOT}/references/regression-glm.md— OLS, logistic, Poisson, ordinal, LME, GLMM${CLAUDE_PLUGIN_ROOT}/references/multivariate.md— CCA, RDA, PERMANOVA, multivariate regression${CLAUDE_PLUGIN_ROOT}/references/factor-analysis.md— EFA, CFA, PCA, SEM skeleton${CLAUDE_PLUGIN_ROOT}/../../references/qc-metrics.md— shared diagnostics and assumption checks
Phase 0: Collect the four intake answers
Parse from $ARGUMENTS where possible. Ask only for what is missing.
-
Outcome(s) — what is being predicted or explained?
- How many outcome variables? (one or multiple)
- What type: continuous, binary (yes/no), count/rate, ordinal (ranked), nominal, or "no outcome — I want to find structure in the variables"?
-
Predictors — what explains the outcome?
- Are they categorical (groups, conditions, time points), continuous (scores, measurements), or a mix?
- Is there a variable you want to control for but are not interested in testing (a covariate)?
-
Design — what is the data structure?
- Are observations independent, or do subjects contribute multiple rows? (repeated measures, longitudinal, subjects nested in sites/families)
- Is this a designed experiment (randomised groups) or observational?
-
Language preference — R (default), Python, or Julia?
If the user already described the question in their message, extract these answers from context before asking. Only ask about genuinely missing information.
Phase 1: Navigate the decision tree
Load ${CLAUDE_PLUGIN_ROOT}/references/test-selection.md.
For regression-family analyses, also consult
${CLAUDE_PLUGIN_ROOT}/references/worked-examples.md for annotated workflows
covering simple regression, hierarchical ΔR², curvilinear, categorical coding,
and interaction/simple-slopes patterns (R/Python/Julia).
Follow the tree to identify:
- The recommended statistical family (e.g., "linear mixed effects regression")
- The corresponding reference file to load next
- Any method-specific questions flagged by the tree
Tell the user the recommended family in one sentence and why (what features of their design drove the choice). If two methods are plausible, name both and explain the deciding factor, then ask the user which fits their intent.
Phase 2: Load the method reference and ask method-specific questions
Load the reference file identified in Phase 1. Read the "Key decisions" section. Ask only questions whose answers are needed to write the model formula. Examples:
- ANOVA: "What is the reference / baseline group?" "Are any factors within-subject?"
- Regression: "Which predictors are you most interested in testing?" "Should any continuous predictors be mean-centred or standardised?"
- Mixed effects: "What is the grouping variable for the random effect?" "Do you expect random slopes, or only a random intercept?"
- CCA: "Which variables form Set A (predictors) and Set B (outcomes)?"
- EFA: "Do you have a hypothesis about how many factors there are?"
Phase 3: Confirm the model hierarchy
Load ${CLAUDE_PLUGIN_ROOT}/references/model-hierarchy.md for the code patterns.
Present the proposed model sequence as a numbered list:
Level 0 (null): outcome ~ 1
Level 1 (covariates): outcome ~ age + site
Level 2 (main effects): outcome ~ age + site + group + score
Level 3 (interaction): outcome ~ age + site + group * score
For each step, name the comparison test (F-test, likelihood ratio, Pillai's trace, etc.) and what a significant result means in plain language.
Ask: "Does this sequence match what you want to test? Any levels to add, remove, or reorder?"
Incorporate corrections before Phase 4.
Phase 4: Emit the model sequence as runnable code stubs
Generate a script skeleton in the user's chosen language. Use the code templates
from the method reference and model-hierarchy.md. The output should be:
- One model object per level, with the formula filled in from the confirmed hierarchy
- Comparison tests between adjacent levels (LRT,
anova(),car::Anova(), etc.) - Calls to the key diagnostic checks from
qc-metrics.mdfor this method family - Comments explaining what each level tests and what to look for in the output
The script is a starting point, not a finished analysis. The user should be able to copy it, point it at their data, and run it immediately.
Constraints
- Never recommend a method without explaining why — the user needs to understand the choice, not just receive a label.
- Never skip the null model. Every sequence starts at Level 0. Skipping it removes the ability to attribute explained variance to specific terms.
- If the design is ambiguous, ask. A wrong random-effects structure or a misidentified outcome type produces valid-looking but wrong results.
- Flag assumption violations early. If the user's description implies likely violations (e.g., heavily skewed outcome → mention GLM alternatives; small N with many predictors → mention regularisation or dimensionality reduction first), name the concern before committing to a model.
- Point toward a separate skill for complex methods. SEM with latent paths, Bayesian modelling, and machine learning pipelines are out of scope here. Name them and say "consider a dedicated skill or workflow for this."
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/statistical-analysis-planning-mrzxupy6/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/statistical-analysis-planning-mrzxupy6' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/statistical-analysis-planning-mrzxupy6/download' --output '.skill-downloads/statistical-analysis-planning-mrzxupy6/SKILL.md.part' && mv '.skill-downloads/statistical-analysis-planning-mrzxupy6/SKILL.md.part' '.skill-downloads/statistical-analysis-planning-mrzxupy6/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Grep, Glob
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/statistical-analysis-planning-mrzxupy6/SKILL.md' && test -s '.skill-downloads/statistical-analysis-planning-mrzxupy6/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/plan-analysis' && cp -R '.skill-downloads/statistical-analysis-planning-mrzxupy6' '.claude/skills/plan-analysis'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/statistical-analysis-planning-mrzxupy6'openskills read 'statistical-analysis-planning-mrzxupy6'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/statistical-analysis-planning-mrzxupy6/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Create Interactive Maps with kepler.gl
Data & AI
Create interactive map visualizations and export standalone HTML using the keplergl Python package. Use to plot geospatial data from DataFrames, GeoJSON, or CSV.
Agent-Driven Parameter Optimization
Data & AI
Guide for optimizing configurable systems with a measurable objective, using bounded trials and evidence-based recommendations.
ICP Visitor Outreach
Data & AI
Identify signed-up users matching the ideal customer profile but stalled, and draft personalized outreach to re-engage them.