Subgroup Analysis

by astoreyai

testing

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.

Skill Details

Repository Files

1 file in this skill directory


name: subgroup-analysis description: "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." allowed-tools: Read, Write, Bash version: 1.0.0

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

Related Skills

Dbt Transformation Patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

testingdocumenttool

Senior Data Scientist

World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics. Expertise in Python (NumPy, Pandas, Scikit-learn), R, SQL, statistical methods, A/B testing, time series, and business intelligence. Includes experiment design, feature engineering, model evaluation, and stakeholder communication. Use when designing experiments, building predictive models, performing causal analysis, or driving data-driven decisions.

designtestingdata

Hypogenic

Automated hypothesis generation and testing using large language models. Use this skill when generating scientific hypotheses from datasets, combining literature insights with empirical data, testing hypotheses against observational data, or conducting systematic hypothesis exploration for research discovery in domains like deception detection, AI content detection, mental health analysis, or other empirical research tasks.

testingdata

Ux Researcher Designer

UX research and design toolkit for Senior UX Designer/Researcher including data-driven persona generation, journey mapping, usability testing frameworks, and research synthesis. Use for user research, persona creation, journey mapping, and design validation.

designtestingtool

Hypogenic

Automated LLM-driven hypothesis generation and testing on tabular datasets. Use when you want to systematically explore hypotheses about patterns in empirical data (e.g., deception detection, content analysis). Combines literature insights with data-driven hypothesis testing. For manual hypothesis formulation use hypothesis-generation; for creative ideation use scientific-brainstorming.

testingdata

Data Engineering Data Driven Feature

Build features guided by data insights, A/B testing, and continuous measurement using specialized agents for analysis, implementation, and experimentation.

testingdata

Dbt Transformation Patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

testingdocumenttool

Dashboard Design

USE THIS SKILL FIRST when user wants to create and design a dashboard, ESPECIALLY Vizro dashboards. This skill enforces a 3-step workflow (requirements, layout, visualization) that must be followed before implementation. For implementation and testing, use the dashboard-build skill after completing Steps 1-3.

designtestingworkflow

Ux Researcher Designer

UX research and design toolkit for Senior UX Designer/Researcher including data-driven persona generation, journey mapping, usability testing frameworks, and research synthesis. Use for user research, persona creation, journey mapping, and design validation.

designtestingtool

Performance Testing

Benchmark indicator performance with BenchmarkDotNet. Use for Series/Buffer/Stream benchmarks, regression detection, and optimization patterns. Target 1.5x Series for StreamHub, 1.2x for BufferList.

testing

Skill Information

Category:Technical
Version:1.0.0
Allowed Tools:Read, Write, Bash
Last Updated:11/11/2025