event-study-cars
>-
Supply asset profile
Research and knowledge work
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars
Maintenance
fresh
Pushed today
Risk
Needs review
Financial research output is not financial advice; require human review before any live investment decision
GitHub quality
47
64/100 Quality · 65/100 Trust
Coverage tags
Review notes
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 adoption scorecard
Trust, audit, and install readiness at a glance
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Do not auto-installTrust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Human review before install
Choose a stronger alternative or inspect the source manually before any install attempt.
Stars
47 GitHub stars
Repo activity
47 stars, 0 forks
Maintenance
Pushed today
License
MIT
Install
npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars
Install safety
standard package or runtime install path
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Thin public metadata
Risk summary
Review before production
- 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
Install readiness
Install path available
- Install path is available
- Repository evidence is available
- License is declared
- No Agent Proven outcome evidence yet
Agent-readable metadata
Machine-readable decision data for this skill.
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
- Finance and quant workflows
- Claude Code teams
- builders willing to evaluate younger projects
- Retrieve market data
Suited agents
Install decision
- Command
- npx skills add kennethkhoocy/applied-micro-skills --skill event-study-cars
- Policy
- review
- Human review
- yes
Trust and risk
- Trust
- 57/100
- Audit
- 75/100
- Risk level
- Needs review
Outcome loop
- Endpoint
- /api/agent/outcome
- Event ID
- resolve
- Outcomes
- 5
Install command
npx skills add kennethkhoocy/applied-micro-skills --skill event-study-carsDo not use when
- teams that need a vendor-supported 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.
- High-risk permission hints: Shell or command execution
Agent safety v2
47/100 · Avoid automatic install
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Shell or command execution
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Network access
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Filesystem access
Skill may read or write project files, documents, generated artifacts, or local workspace state.
- High-risk permission hints: Shell or command execution
- Financial research output is not financial advice; require human review before any live investment decision
Install targets
Install this skill in your agent workflow
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
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-carsAgent resolve plan
Let an agent verify fit before installing.
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20event-study-cars%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20event-study-cars%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/kennethkhoocy-event-study-cars/install
Agent should check
- Task fit and alternatives from Resolve API.
- Audit score, trust score, and safety policy warnings.
- Install target compatibility for Codex, Claude Code, Cursor, or CLI.
Copy prompt
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 handoff
Give an agent the install path, not another directory page.
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/kennethkhoocy-event-study-cars/install
LLM text format
/api/skills/kennethkhoocy-event-study-cars/install?format=text
Find alternatives
/api/skills/search?q=event-study-cars&limit=3
Agent prompt
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-carsRegistry metadata
Agent-readable profile for automatic skill selection.
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/kennethkhoocy-event-study-cars
LLM text
/api/registry/manifest/kennethkhoocy-event-study-cars?format=text
Install alias
/api/registry/install/kennethkhoocy-event-study-cars
Recommend
/api/registry/recommend?task=Use%20event-study-cars%20in%20an%20agent%20workflow&limit=3
Agent fit
Finance and quant
Use-case tags
Platforms
Claude Code
Audit report
Needs review · 75/100
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Fallback candidate for Finance and quant
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Finance and quant
Trust label
Prototype first
Install path
Command ready
Use when
- Finance and quant workflows
- Claude Code teams
- builders willing to evaluate younger projects
Evidence
- recent repository activity
- install command or GitHub repo available
- 64/100 quality profile
- 3 OpenAgentSkill engagement events
review first
- 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.
Implementation path
- 1Install it in a sandbox agent and run one Finance and quant task end to end.
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
Trust profile
Do not auto-install
Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
GitHub adoption
CHECK47 GitHub stars
Stars/forks activity
CHECK47 stars, 0 forks; issue activity unavailable in current metadata
Recent maintenance
PASSPushed today
License clarity
PASSMIT
Good signals
- AI review approved
- Install path is available
- Repository evidence is available
- Recently maintained repository
- Install command has no obvious high-risk pattern
- Outcome loop is ready but needs first real agent run
Review before install
- 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
- No real agent outcome reports yet
- Human review required before unattended installation
Recommended action
Choose a stronger alternative or inspect the source manually before any install attempt.
Quality profile
Promising candidate for agent workflows
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Use this skill in these scenarios
Analyze markets
Finance and quant
I need my agent to analyze markets, financial data, filings, portfolios, and quant strategies.
Operate web apps
Browser automation
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Workflow fit
Add it to a complete workflow
Operate and verify web apps
Browser QA agent
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
Research report agent
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Turn skills into distribution
Content growth agent
A workflow for turning newly indexed skills into SEO briefs, social drafts, comparison pages, and reusable publishing workflows.
Alternative shortlist
Compare before you install
Similar skills that may fit this task.
UI-TARS Desktop
Run multimodal agents that operate desktop interfaces
MoneyPrinterTurbo
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
Cua
Open-source infrastructure for Computer-Use Agents. Sandboxes, SDKs, and benchmarks to train and evaluate AI agents that can control full desktops (macOS, Linux, Windows).
Overview
--- 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
Technical details
- Version
- 1.0.0
- License
- MIT
- Last updated
- Aug 24, 2026
- Published
- Aug 24, 2026
Decision snapshot
Fallback candidate
recent repository activity
Audit
Install review
Install and adoption review
- Security
- 76/100
- Maintenance
- 100/100
- Install
- 92/100
Agent-proven evidence
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
- Success rate
- —
- Recent failure
- —
- Outcomes
- 0
- Output quality
- —
- Failed
- 0
- Not relevant
- 0
- Installs
- 0
- Risk blocked
- 0
- Setup needed
- 0
- Production
- 0
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Add to agent workflow
Free and open source. Review the report before installing into production agents.
Growth loop
Share kit
Scenario-led draft for event-study-cars, ready for a manual X post.
A practical pick for a repeatable workflow: event-study-cars: >- 47 stars https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars?ref=x
Optional reply with install command
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
Listing source
Registry indexed
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
- Creator
- kennethkhoocy
- Indexed by
- OpenAgentSkill community index
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
Claim this skill listing
This Registry indexed listing is attributed to kennethkhoocy but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Add the evidence badges to your README
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars)
[](https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars)
[](https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars/audit)
[](https://www.openagentskill.com/skills/kennethkhoocy-event-study-cars)Author
kennethkhoocy
@kennethkhoocy
Tags
Platform fit
Health signals
- GitHub stars
- 47
- Quality score
- 35/100
- Last GitHub push
- Aug 24, 2026
- Framework hints
- Unknown
- OpenAgentSkill views
- 3
- Install copies
- 0
- Outbound clicks
- 0
Community signal
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Trust & safety
Do not auto-install
- GitHub adoption47 GitHub starsCHECK
- Stars/forks activity47 stars, 0 forks; issue activity unavailable in current metadataCHECK
- Recent maintenancePushed todayPASS
- License clarityMITPASS
- README/SKILL.md completenessPublic metadata needs stronger README/SKILL.md contextCHECK
- Dependency/runtime riskcommand execution surfaceINFO
Related skills
UI-TARS Desktop
Run multimodal agents that operate desktop interfaces
37.0K StarsMoneyPrinterTurbo
利用AI大模型,一键生成高清短视频 Generate short videos with one click using AI LLM.
88.5K StarsCua
Open-source infrastructure for Computer-Use Agents. Sandboxes, SDKs, and benchmarks to train and evaluate AI agents that can control full desktops (macOS, Linux, Windows).
21.4K Stars