effect-measure-modification

Analyze interaction effects in regression models to detect modification by a third variable.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/mrl2013/p8483-and-p8400-assistant --skill effect-measure-modification
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-measure-modification
Source: https://github.com/mrl2013/p8483-and-p8400-assistant/tree/main/.github/skills/effect-measure-modification
Command: npx skills add https://github.com/mrl2013/p8483-and-p8400-assistant --skill effect-measure-modification

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps in analyzing the interaction effects between exposure and outcome, allowing for the detection of modification by a third variable.

Core Features & Use Cases

  • Interaction Analysis: Detects whether the association between exposure and outcome varies by levels of a third variable.
  • Model Building: Adds interaction terms to regression models to test for interaction effects.
  • Estimate Reporting: Computes and reports stratum-specific estimates when interaction is present.
  • Use Case: A researcher might use this Skill to analyze whether the association between smoking and lung cancer is different across age groups.

Quick Start

Run the 'analyze_interaction' script on the provided dataset 'exposure_outcome_data.csv' with the third variable 'age'.

Frequently Asked Questions about effect-measure-modification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test for effect measure modification in a regression model?

To test for effect measure modification, you add interaction terms to your regression model and evaluate whether the association between exposure and outcome varies across levels of a third variable.

What is interaction analysis in epidemiology?

Interaction analysis in epidemiology detects whether a third variable modifies the association between an exposure and an outcome, requiring regression model construction to assess and report these interaction effects.

How do I report stratum-specific estimates when interaction is present?

When interaction is present, you compute and report stratum-specific estimates by analyzing the interaction effects within your regression model to show how the association varies across different levels.

Can I use this to analyze if smoking and lung cancer association differs by age group?

Yes, you can analyze whether the association between smoking and lung cancer differs by age groups by running the interaction analysis script on your dataset with age as the third variable.

Do I need a specific data format to analyze moderation effects?

You need a dataset containing your exposure, outcome, and the third variable, such as a CSV file, to construct regression models and estimate the moderation effects accurately.

What are the limitations of using interaction terms for moderation effect analysis?

Limitations of interaction terms include the need for specific regression model construction and estimation techniques to accurately detect modification, requiring sufficient data within each stratum to report reliable estimates.