Agent skill
subgroup-analysis
Conduct subgroup analyses to examine effect moderation. Use when: (1) Testing pre-specified moderators, (2) Exploring heterogeneity, (3) Identifying differential effects, (4) Meta-analysis synthesis.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/subgroup-analysis-astoreyai-ai-scientist-011051dc
SKILL.md
Subgroup Analysis Skill
Purpose
Examine whether effects differ across subgroups of participants or studies.
Planning Subgroup Analyses
Pre-Specify:
- Which subgroups (age, sex, severity)
- Rationale for each
- Statistical approach
Limit Number:
- Too many = Type I error inflation
- Focus on theoretically important
- Correct for multiple comparisons
Subgroup Analysis Methods
1. Interaction Tests
- Test group × subgroup interaction
- More powerful than separate analyses
2. Stratified Analysis
- Separate analysis per subgroup
- Compare effect sizes
3. Meta-Regression
- Continuous moderators
- Multiple moderators simultaneously
Interpretation Cautions
Observational Nature:
- Subgroups not randomized
- Confounding possible
- Generate hypotheses, don't confirm
Multiple Testing:
- Adjust alpha (Bonferroni)
- Or report as exploratory
Example: "Pre-specified subgroup analysis showed larger effects in younger participants (<50 years, d=0.68) versus older (≥50 years, d=0.34), interaction p=.02."
Version: 1.0.0
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?