# Marginaleffects (agent skill)

> Marginaleffects is an agent skill (a SKILL.md file) from brycewang-stanford/Auto-Empirical-Research-Skills. Manual for the marginaleffects R and Python package, and guide to the book "Model to Meaning". It works with Claude Code and Codex and has 4,511 GitHub stars. Install it by copying the skill folder into your agent's skills directory.

Manual for the marginaleffects R and Python package, and guide to the book "Model to Meaning". Use when users ask about predictions, comparisons, slopes, marginal effects, average treatment effects (ATE/ATT/CATE), hypothesis testing, contrasts, counterfactuals, risk ratios, odds ratios, causal inference with G-computation, or need help with marginaleffects functions like predictions(), comparisons(), slopes(), hypotheses(), datagrid(), avgpredictions(), avgcomparisons(), avg_slopes(), or plot…

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills |
| Skill path | skills/39-vincentarelbundock-marginaleffects/SKILL.md |
| Skill name | marginaleffects |
| GitHub stars | 4,511 |
| Installs on skills.sh | not listed |
| License | CC-BY-4.0 |
| Skills in repo | 1 |
| Plugin marketplace | auto-empirical-research-skills |
| Official | no |
| Works with | Claude Code, Codex |
| Category | Testing & QA |
| Last commit | Oct 5, 2026 |

## When it triggers

- Use when users ask about predictions, comparisons, slopes, marginal effects, average treatment effects (ATE/ATT/CATE), hypothesis testing, contrasts, counterfactuals, risk ratios, odds ratios, causal inference with G-computation, or need he
- "Model to Meaning"

## Add this skill

### Claude Code

```sh
/plugin marketplace add brycewang-stanford/Auto-Empirical-Research-Skills
/plugin   # browse auto-empirical-research-skills and install the plugin that contains marginaleffects
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills.git
cp -r Auto-Empirical-Research-Skills/skills/39-vincentarelbundock-marginaleffects .agents/skills/marginaleffects   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills.git
cp -r Auto-Empirical-Research-Skills/skills/39-vincentarelbundock-marginaleffects .cursor/skills/marginaleffects   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/brycewang-stanford-marginaleffects
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
