eeg-behavior

Computes RT/accuracy summaries and links EEG trial predictors to behavioral outcomes via regression, median-split, or correlation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dengzhe-hou/auto-eeg-analysis --skill eeg-behavior
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eeg-behavior
Source: https://github.com/dengzhe-hou/auto-eeg-analysis/tree/main/skills/eeg-behavior
Command: npx skills add https://github.com/dengzhe-hou/auto-eeg-analysis --skill eeg-behavior

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill turns EEG epoch data plus trial event/behavior logs into reproducible behavioral summaries and tests that connect reaction time and accuracy to trial-level EEG features.

Core Features & Use Cases

  • RT/accuracy descriptive statistics with guardrailed cleaning: computes RT distributions (with IQR-based outlier removal), condition-wise summaries, and accuracy metrics (including d-prime and criterion, plus optional IES).
  • Speed–accuracy tradeoff and performance dynamics: supports conditional accuracy and delta-style analyses to describe how performance changes across RT quantiles.
  • EEG-behavior linking with trial-level modeling: runs recommended single-trial regression (predictor = ROI mean amplitude in a time window; outcome = RT or accuracy) and offers median-split or across-subject correlation as alternatives.
  • Use when: you need behavioral analysis (RT/accuracy), want to test whether an EEG effect predicts RT/accuracy (e.g., “does N2 predict RT”), or need brain–behavior correlation/regression integrated into your pipeline.

Quick Start

Use the eeg-behavior skill for your study directory by providing your analysis context, then request RT/accuracy measures and an EEG-behavior linking method such as regression.

Frequently Asked Questions about eeg-behavior

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

FAQPage Schema
How do I link single-trial EEG amplitude to reaction time in my experiment data?

To link single-trial EEG to reaction time, you can use single-trial regression with ROI mean amplitude as the predictor and RT as the outcome. This requires epoched EEG data and a behavioral log with trial-wise RT aligned to trial metadata.

What is the best way to compute reaction time and accuracy summaries with outlier removal for EEG studies?

The best way to compute reaction time and accuracy summaries is using IQR-based outlier removal for RT distributions, alongside condition-wise summaries and accuracy metrics like d-prime. This produces guardrailed descriptive statistics and behavior-stage JSON outputs.

Can I test whether an EEG effect like N2 amplitude predicts behavioral accuracy?

Yes, you can test if an EEG effect predicts behavioral accuracy using single-trial regression, median-split, or across-subject correlation. The EEG predictor is the ROI mean amplitude, and the outcome is trial-level accuracy or RT.

What data formats and files do I need to align behavioral logs with EEG epochs for trial-level modeling?

You need epoched data in the epoch-stage/ directory, a DATASET_BRIEF.md for marker-to-condition mapping, and an ANALYSIS_PLAN.md for declared behavioral claims. Additionally, behavioral sources must contain trial-wise RT, response, and correctness data.

How do I analyze the speed-accuracy tradeoff across different reaction time quantiles?

To analyze the speed-accuracy tradeoff, you can use conditional accuracy and delta-style analyses. These methods describe how performance changes across RT quantiles, providing insights into performance dynamics within your EEG experiment data.

Are there alternatives to single-trial regression for brain-behavior correlation in EEG experiments?

Alternatives to single-trial regression for brain-behavior correlation include median-split analysis and across-subject correlation. These methods also link trial-level EEG predictors to behavioral outcomes like RT or accuracy.