event-study-cars

审查 · 57
已收录

>-

Verified installs0
Stars47
版本1.0.0
质量64/100 · 有潜力
信任57/100 · Do not auto-install
审计75/100 · 需审查

供给资产档案

研究与知识工作

Deep research, source comparison, literature review, RAG, knowledge search, and reports.

浏览赛道

场景

研究 Agent

I need my agent to research a topic, compare sources, and produce a concise report.

适配 Agent

Claude Code + CLI + Codex

适用于 Codex、Claude Code、Cursor、CLI 或自定义 Agent。

安装

就绪

npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars

维护状态

新鲜

今天有推送

风险

需审查

Financial research output is not financial advice; require human review before any live investment decision

GitHub 质量

47

64/100 质量 · 65/100 信任

覆盖标签

研究研究 Agent自动化agent-skill

审查说明

Financial research output is not financial advice; require human review before any live investment decision · SKILL.md excerpt is truncated in the provided documentation, but the full file appears comprehensive based on the excerpt and accompanying files.

Agent 采用评分卡

一眼查看信任、审计与安装准备度

这些分数综合公开仓库元数据、OpenAgentSkill 审查信号、维护新鲜度与安装准备度。它用于候选筛选,不替代人工审查。

质量

有潜力
64

有用的候选项,但采用前应与替代方案比较。

信任

Do not auto-install
57

Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.

审计

需审查
75

对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。

OpenAgentSkill 信任评分 v5

安装前需人工审查

Choose a stronger alternative or inspect the source manually before any install attempt.

CodexClaude CodeCursorOpenAgentSkill CLI

Stars

47 个 GitHub Stars

仓库活跃度

47 个 Star,0 个 Fork

维护状态

今天有推送

许可证

MIT

安装

npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars

安装安全性

标准软件包或运行时安装路径

权限范围

shell or command execution, filesystem or document access

Agent 结果

暂未有 Agent 结果数据

文档

Thin public metadata

风险摘要

生产前审查

  • SKILL.md excerpt is truncated in the provided documentation, but the full file appears comprehensive based on the excerpt and accompanying files.
  • Financial research output is not financial advice; require human review before any live investment decision.
  • Low GitHub adoption signal
  • Quality score needs review

安装准备度

安装路径可用

  • 安装路径可用
  • 仓库证据可用
  • 已声明许可证
  • 暂无 Agent 验证结果证据

Agent 可读元数据

这个 Skill 的机器可读决策数据。

使用此区块或内嵌 JSON 判断 Agent 是否应安装该 Skill、选择替代方案,或先请求人工审查。

打开 JSON

适用任务

  • 金融与量化工作流
  • Claude Code 团队
  • builders willing to evaluate younger projects
  • Retrieve market data

适用 Agent

CodexClaude CodeCursorOpenAgentSkill CLICLI

安装决策

命令
npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars
策略
审查
人工审查

信任与风险

信任
57/100
审计
75/100
风险级别
需审查

结果闭环

端点
/api/agent/outcome
事件 ID
resolve
结果
5

安装命令

npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars

不适用场景

  • 需要厂商支持 SLA 的团队
  • production agents without a repository review
  • Low GitHub adoption signal
  • SKILL.md excerpt is truncated in the provided documentation, but the full file appears comprehensive based on the excerpt and accompanying files.
  • 高风险权限提示:Shell 或命令执行

Agent 安全 v2

47/100 · 避免自动安装

实验性审查

Sparse or mixed signals. Useful for discovery, but not for autonomous installation.

Test manually in an isolated workspace and compare against safer alternatives.

通过 API 解析

Shell 或命令执行

Skill 元数据引用了终端、CLI、Shell、子进程或命令执行工作流。

网络访问

Skill 可能访问远程页面、API、仓库或外部服务。

文件系统访问

Skill 可能读取或写入项目文件、文档、生成产物或本地工作区状态。

  • 高风险权限提示:Shell 或命令执行
  • Financial research output is not financial advice; require human review before any live investment decision

安装目标

在你的 Agent 工作流中安装此 Skill

通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。

skill install

OpenAgentSkill CLI

Resolve policy, run the source installer safely, and report a verified install receipt.

$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install kennethkhoocy-event-study-cars

Agent 解析计划

让 Agent 在安装前验证匹配度。

Resolve API 返回首选 Skill、替代方案、安全策略、审计说明、安装目标和可直接执行的提示词,无需抓取此页面。

打开文本计划

Agent 应检查

  • 从 Resolve API 检查任务匹配与替代方案。
  • 检查审计评分、信任评分和安全策略警告。
  • 检查 Codex、Claude Code、Cursor 或 CLI 的安装目标兼容性。

复制提示词

Task: Use event-study-cars in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20event-study-cars%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/kennethkhoocy-event-study-cars/install
Install command: npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.

Agent 交接

把安装路径交给 Agent,而不是再给一个目录页。

通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。

打开安装 API

Agent 提示词

Use event-study-cars for this task. Review https://www.openagentskill.com/api/skills/kennethkhoocy-event-study-cars/install, then install with: npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars

Registry 元数据

用于自动选择 Skill 的 Agent 可读档案。

本页通过 Registry API 提供相同的决策、信任、审计、场景和安装信号,让 Agent 无需抓取界面即可排序。

打开 Manifest

适配 Agent

64/100

金融与量化

平台

Claude Code

审计报告

需审查 · 75/100

对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。

查看审计报告查看评估报告

Agent 决策面板

Fallback candidate for Finance and quant

先用此 Skill 做原型验证,并保留备选方案。

64
就绪度
原型验证
阶段

栈中角色

备选候选

主要匹配

金融与量化

信任标签

先做原型验证

安装路径

命令已就绪

适用场景

  • 金融与量化工作流
  • Claude Code 团队
  • builders willing to evaluate younger projects

证据

  • 仓库近期活跃
  • 已提供安装命令或 GitHub 仓库
  • 64/100 质量档案
  • 3 个 OpenAgentSkill 交互事件

先审查

  • Low GitHub adoption signal
  • SKILL.md excerpt is truncated in the provided documentation, but the full file appears comprehensive based on the excerpt and accompanying files.

实施路径

  1. 1在沙盒 Agent 中安装它,并端到端完成一次金融与量化任务。
  2. 2Compare output quality, latency, and failure behavior against at least one alternative.
  3. 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.

信任档案

Do not auto-install

Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.

57
OpenAgentSkill 信任评分

GitHub 采用度

检查

47 个 GitHub Stars

Star/Fork 活跃度

检查

47 个 Star,0 个 Fork; 当前元数据中没有议题活跃度信息

近期维护

通过

今天有推送

许可证清晰度

通过

MIT

积极信号

  • AI 审查已通过
  • 安装路径可用
  • 仓库证据可用
  • 近期维护的仓库
  • 安装命令未发现明显高风险模式
  • 结果闭环已就绪,但需要首次真实 Agent 运行

安装前审查

  • SKILL.md excerpt is truncated in the provided documentation, but the full file appears comprehensive based on the excerpt and accompanying files.
  • Financial research output is not financial advice; require human review before any live investment decision.
  • Low GitHub adoption signal
  • Quality score needs review
  • GitHub adoption: 47 GitHub stars
  • Stars/forks activity: 47 stars, 0 forks; issue activity unavailable in current metadata
  • README/SKILL.md completeness: Public metadata needs stronger README/SKILL.md context
  • 暂未有真实 Agent 结果报告
  • 无人值守安装前需要人工审查

建议操作

Choose a stronger alternative or inspect the source manually before any install attempt.

质量档案

有潜力 适用于 Agent 工作流的候选

有用的候选项,但采用前应与替代方案比较。

64
GitHub Stars
47
新鲜度
今天
安装就绪
许可证
MIT
安装前审查: Low GitHub adoption signal · SKILL.md excerpt is truncated in the provided documentation, but the full file appears comprehensive based on the excerpt and accompanying files.

工作流匹配

在这些场景使用此 Skill

工作流匹配

加入完整工作流

替代方案短名单

安装前对比

可能适合该任务的相近 Skill。

对比全部

概览

--- name: event-study-cars description: >- Complete methodology for computing publication-quality cumulative abnormal returns with proper event-study test statistics, matching the robustness of Kaspereit's eventstudy2 for Stata. Covers dateline construction, event-date mapping, estimation and event windows, thin-trading adjustment, OLS with Theil prediction error correction, abnormal return computation, CAR/CAAR/AAR accumulation, boundary contamination guards, and common tests such as Patell, BMP, Kolari-Pynnonen, generalized sign, Wilcoxon, and GRANK-T. Use when the user mentions abnormal returns, event windows, market-model regressions, CARs, CAAR, AAR, eventstudy2, thin trading, trade-to-trade returns, or event-study test statistics. ---

# Event Study: Cumulative Abnormal Returns (CARs)

A complete methodology reference for computing publication-quality CARs with robust test statistics, matching the rigor of Kaspereit's eventstudy2 (v3.2b) for Stata. This skill is **generic** — applicable to any market, asset class, or event type.

## Use the shipped engine first (do not rewrite it)

`scripts/eventstudy.py` is a complete, runnable Python replication of eventstudy2, validated against the Stata package to floating-point precision (AR ~1e-8, CAR ~6e-8, CAAR and the implemented test statistics ~1e-7) on a generic CRSP sample across all four models (FM, COMEAN, MA, RAW). It is generic — all column names, the model, windows, thin-trading, and log handling are CLI flags. When a user wants CARs computed, **run this engine**; do not author a new pipeline.

```bash python scripts/eventstudy.py --selftest # synthetic self-check, no inputs python scripts/eventstudy.py \ --returns returns.csv --market market.csv --events events.csv \ --id-col permno --ret-col ret --event-date-col event_date --mkt-col vwretd \ --model FM --car-windows "-1,1;-5,5;-10,10" \ --eswlb -250 --eswub -30 --evwlb -10 --evwub 10 --out-dir out/ ```

Inputs are CSV/Parquet: returns (`id, date, ret`), market/factors (`date, mkt[, factors]`), events (`id, event_date`). Outputs: `ar_panel.csv`, `car_panel.csv`, `test_statistics.csv`. Requires numpy/pandas/scipy. Run `--help` for all flags (`--factor-cols smb,hml`, `--model MA`, `--no-thin-trading`, ...). The sections below document the methodology the engine implements; read them to audit, extend, or port it.

## Methodology Overview: The 8-Step Pipeline

### Step 1: Build Trading Calendar (Dateline)

Construct a master list of valid trading dates from the security returns file.

1. Collect all unique dates on which at least one security has a non-missing return (or, if using a factor model, dates where market/factor returns exist). 2. Count the number of securities with valid returns on each date. 3. Optionally drop weekends (`delweekend`). 4. Apply `dateline_threshold`: drop dates where the count of return observations falls below `threshold × mean(daily_count)`. A threshold of 0.2 works well for international samples with heterogeneous holidays. 5. The resulting date vector is the **dateline** — all downstream windows are defined in dateline time (relative trading days), not calendar time.

### Step 2: Map Event Dates to Nearest Valid Trading Day

For each event: 1. Find the nearest dateline date **on or after** the event date. 2. If the shift exceeds `max_shift` calendar days (default: 3), **exclude** the event entirely — do not silently map it to a distant trading day. 3. Events with missing dates, or dates outside the dateline range, are also excluded and logged with the reason.

### Step 3: Construct Estimation and Event Windows

For each firm-event pair, define windows in **relative trading time** (offsets from the event day on the dateline):

- **Estimation window**: `[esw_lb, esw_ub]` — default `[-250, -30]`. - **Event window**: `[evw_lb, evw_ub]` — determined by the widest CAR window requested. - Enforce a **gap** between the estimation and event windows to prevent event contamination of the benchmark model.

**Exclusion checks** (per firm-event): - Insufficient estimation-window observations (fewer than `min_esw_obs`, default 120). - Insufficient event-window observations. - **IPO/delisting guard**: if the stock's first observed return date falls after `evw_lb` or last observed return date falls before `evw_ub`, exclude the firm-event. These are survivorship-biased observations.

### Step 4: Apply Thin-Trading Adjustment

For markets with non-trivially thin trading (most markets outside US mega-caps), apply the Maynes-Rumsey (1993) trade-to-trade transformation **by default**.

> Read `references/thin_trading.md` for the complete transformation, including > the `cum_periods` construction, the regression specification with `nocons`, > and the boundary contamination guard.

**Summary**: Non-trading days accumulate into the next trading day's return. All variables (returns, factors, intercept) are divided by `sqrt(cum_periods)`. OLS is run with `nocons` because the intercept regressor `1/sqrt(d)` replaces the standard constant. This is a GLS correction for the heteroscedasticity introduced by multi-period returns.

### Step 5: Run OLS and Compute STDF

For each firm-event pair, estimate the benchmark model over the estimation window and compute the **standard deviation of forecast** (STDF) for every observation (estimation + event window).

> Read `references/estimation_models.md` for model specifications (RAW, > COMEAN, MA, FM, BHAR).

**STDF** (Theil 1971 prediction error correction):

For each observation t, the forecast standard deviation is:

STDF_it = sigma_hat_i * sqrt(1 + x'_t (X'X)^{-1} x_t)

where `x_t` is the regressor vector at time t, `X` is the estimation-window design matrix, and `sigma_hat_i = sqrt(SSR / (T_i - 2 - df))` is the OLS residual standard deviation. `df` is the number of additional factors beyond the market (0 for market model, 2 for FF3, etc.).

The STDF accounts for both the inherent noise in returns (sigma) and the estimation uncertainty in the model coefficients (which grows when event-window factor values are far from estimation-window means).

**Python**: after `numpy.linalg.lstsq`, compute the hat matrix `H = X @ inv(X'X) @ X'` and `h_t = x'_t @ inv(X'X) @ x_t` for each event-window observation. Then `STDF_t = sigma_hat * sqrt(1 + h_t)`.

### Step 6: Compute Abnormal Returns

AR_it = R_it - predicted_it

where `predicted_it` comes from the estimated benchmark model applied to event-window factor values.

**Critical rule**: do NOT zero-fill missing event-window returns. A missing return means the stock did not trade — setting it to zero biases CARs toward zero for illiquid stocks. Leave it as NaN and let the accumulation step handle the count of valid ARs.

### Step 7: Accumulate CARs

For each requested CAR window `[lb, ub]` and each firm-event:

CAR_i = sum of AR_it for t in [lb, ub] where AR_it is not NaN

**Boundary contamination guard** (from eventstudy2): - If the **first** day of the CAR window has `cum_periods > 1`, the return on that day spans back before the window start. Set CAR = NaN. - If the **last** day of the CAR window has a missing AR, the firm-event lacks coverage at the window boundary. Set CAR = NaN. - For AAR (day-by-day) output: any day with `cum_periods > 1` has its AR set to NaN (the multi-period return cannot be attributed to a single day).

Track `n_valid_ar` per CAR: the count of non-NaN ARs in the window. A valid CAR should have `n_valid_ar == window_length`. CARs with fewer valid days should be flagged or excluded depending on the analysis.

### Step 8: Compute Test Statistics

Compute at minimum: **Patell (1976)**, **BMP (Boehmer et al. 1991)**, **Kolari-Pynnonen adjusted BMP**, and the **generalized sign test (Cowan 1992)**. For maximum rigor, compute all 13 tests.

> Read `references/test_statistics.md` for exact formulas, null hypotheses, > distributions, and Python implementation notes for all 13 tests.

> Read `references/kolari_pynnonen.md` for the cross-correlation adjustment > procedure (ADJ factor) and the GRANK-T test.

Test statistics are reported at two levels: - **AAR level**: one test statistic per event day (tests whether the average AR across firms is significantly different from zero on that day). - **CAAR level**: one test statistic per CAR window (tests whether the cumulative average AR is significantly different from zero over the window).

---

## Model Selection

> Read `references/estimation_models.md` for full mathematical specifications.

| Model | When to Use | |-------|-------------| | **RAW** | Baseline/diagnostic only. No benchmark subtracted. | | **COMEAN** | Simplest parametric benchmark (constant mean return). | | **MA** (market-adjusted) | When factor data is unavailable. Subtracts market return directly. | | **FM** (factor model) | Standard choice for short-window event studies. Market model (1 factor) or FF3/FF5/Carhart (multi-factor). | | **BHAR** | Long-horizon event studies (months/years). Requires skewness-adjusted bootstrap (Lyon et al. 1999). |

Default: **FM with market model** (1 factor) for short-window studies.

---

## Critical Rules

1. **NEVER** replace missing event-window returns with zero. This biases CARs toward zero for illiquid stocks. The only exception is BHAR models, which assume continuous holding.

2. **NEVER** compute CARs when the stock's first/last trading date falls inside the event window (IPO/delisting bias).

3. **NEVER** sum CARs when a boundary day has `cum_periods > 1` — the return spans outside the intended window.

4. **NEVER** run OLS with a standard constant when using the trade-to-trade transformation. Use `nocons` with `1/sqrt(cum_periods)` as the intercept regressor.

5. **NEVER** report CARs without at least one parametric and one non-parametric test statistic.

6. **NEVER** mix log and simple returns between the LHS and RHS of the market model. If stock returns are in logs, factor returns must also be in logs (or convert both via `ln(1+R)` before estimation). Jensen's inequality creates bias otherwise.

---

## Output Contract

A valid CAR output dataset must contain:

**Identifiers** (column names vary by project): - `firm_id`, `event_id`, `event_date`

**Estimation diagnostics** (per firm-event, per model): - `alpha`, `beta` (per factor), `nobs`, `r2`, `sigma_hat`

**Per CAR window per model**: - `car_value` — NaN if invalid - `n_valid_ar` — count of non-NaN ARs in the window

**Exclusion reason** (per firm-event): - `insufficient_est_obs`, `insufficient_evt_obs`, `ipo_in_window`, `delisting_in_window`, `event_off_dateline`, `boundary_contamination`

**Test statistics** (separate output): - AAR-level and CAAR-level tests, each with test statistic value and p-value - Minimum: Patell, BMP, Kolari-Pynnonen adjusted BMP, generalized sign test

---

## Sensible Defaults

These can be overridden by the user:

| Parameter | Default | Notes | |-----------|---------|-------| | Estimation window | `[-250, -30]` | ~1 year of trading days | | Min estimation obs | 120 | Conservative; eventstudy2 defaults to 30 | | Event window | Widest CAR window | Determined by user's CAR windows | | Max event-date shift | 3 calendar days | Beyond this, exclude the event | | Dateline threshold | 0.0 | Include all trading days (set ~0.2 for international samples) | | Thin-trading adjustment | ON | Disable only for extremely liquid markets | | Log returns | Convert via `ln(1+R)` | Unless input is already in logs | | Min event-window obs | 1 | Per eventstudy2 default | | Kolari-Pynnonen ADJ | Computed | Skip only if N > 500 firms (O(N^2) cost) |

---

## Reference Files

Read these for detailed formulas and implementation guidance:

| File | Contents | When to Read | |------|----------|--------------| | `references/estimation_models.md` | RAW, COMEAN, MA, FM, BHAR model specs | When choosing or implementing a benchmark mo

技术详情

版本
1.0.0
许可证
MIT
最近更新
2026年8月24日
发布时间
2026年8月24日

决策摘要

备选候选

64
就绪
原型验证
阶段

仓库近期活跃

审计

安装审查

安装与采用审查

75
需审查
安全性
76/100
维护状态
100/100
安装
92/100
打开完整审计查看评估报告

Agent 验证证据

Agent 验证证据

来自解析、审查、安装和一次小范围运行后的结果报告。

0
已验证
Needs first agent run自动安装: 先审查最近: 未知
成功率
近期失败
结果
0
输出质量
失败
0
不相关
0
安装次数
0
风险拦截
0
需要配置
0
生产环境
0

暂时没有 Agent 结果数据。首次 Agent 执行可以通过 /api/agent/outcome 报告成功、需要设置、风险拦截、失败或不相关。

安装

加入 Agent 工作流

免费且开源. 在生产 Agent 中安装前请先审查报告。

增长闭环

分享工具包

X

为 event-study-cars 准备的场景化草稿,可手动发布到 X。

策展说明
A practical pick for a repeatable workflow:

event-study-cars: >-

47 stars

https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars?ref=x
打开 X 草稿
可选:带安装命令的回复
Listing + install path for event-study-cars:
https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars?ref=x

Install: npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars
打开回复草稿

收录来源

Registry 收录

可认领

此列表来自公开来源,维护者认领获批前不会标记为官方。

创作者
kennethkhoocy
收录方
OpenAgentSkill 社区索引

归属链接指向公开仓库或创作者主页。创作者可认领列表以更新所有权信号。

认领此 Skill

所有者认领

认领此 Skill 页面

这条 Registry 收录 列表归属于 kennethkhoocy,但尚未标记为官方。认领后可增加已验证所有者信号,使后续发布、安装和审计更新更值得信赖。

创作者外链工具包

将证据徽章加入你的 README

在开发者评估仓库的位置展示规范页面、当前信任与审计信号,以及真实的 Agent 验证证据。

[![Listed on OpenAgentSkill](https://www.openagentskill.com/api/badge/kennethkhoocy-event-study-cars?metric=listed&label=Listed)](https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars)
[![OpenAgentSkill Trust](https://www.openagentskill.com/api/badge/kennethkhoocy-event-study-cars?metric=trust&label=Trust)](https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars)
[![OpenAgentSkill Audit](https://www.openagentskill.com/api/badge/kennethkhoocy-event-study-cars?metric=audit&label=Audit)](https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars/audit)
[![Agent Proven](https://www.openagentskill.com/api/badge/kennethkhoocy-event-study-cars?metric=proven&label=Agent%20Proven)](https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars)

作者

K

kennethkhoocy

@kennethkhoocy

平台适配

健康信号

GitHub Stars
47
质量评分
35/100
最近 GitHub 推送
2026年8月24日
框架提示
未知
OpenAgentSkill 浏览量
3
复制安装命令
0
跳转点击
0

社区信号

告诉我们这个 Skill 是否对你的 Agent 工作流有帮助。汇总反馈会持续改善排序。

信任与安全

Do not auto-install

57
  • GitHub 采用度47 个 GitHub Stars检查
  • Star/Fork 活跃度47 个 Star,0 个 Fork; 当前元数据中没有议题活跃度信息检查
  • 近期维护今天有推送通过
  • 许可证清晰度MIT通过
  • README/SKILL.md 完整度公开元数据需要更完整的 README/SKILL.md 上下文检查
  • 依赖与运行时风险命令执行范围信息