event_study_guide
Design event study methodologies for causal inference analysis by selecting event types, staggered treatments, and appropriate estimators.
Instructions
사건연구(Event Study) 설계 가이드
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_type | Yes | 사건 유형 | |
| staggered | No | 시차적 처치 여부 | |
| estimator | No | 추정량 |
Implementation Reference
- src/tools/index.ts:1469-1481 (handler)The handler function that executes the tool logic for 'event_study_guide'. It takes input arguments and returns guidance on event study estimators (TWFE, CS, SA, DID_M) and recommendations based on whether treatment is staggered.function handleEventStudyGuide(args: Record<string, unknown>) { return { event_type: args.event_type, staggered: args.staggered, estimators: { twfe: "Two-way FE (동질적 처치효과 시)", cs: "Callaway-Sant'Anna (이질적 처치효과)", sa: "Sun-Abraham (이질적 처치효과)", did_m: "de Chaisemartin-D'Haultfoeuille" }, recommendation: args.staggered ? "CS 또는 SA 추정량 권장" : "TWFE 사용 가능" }; }
- src/tools/index.ts:335-346 (registration)The tool registration entry in the tools array, defining the name, description, and input schema (event_type required, staggered boolean, estimator enum). The handler is dispatched via the switch statement at line 828.name: "event_study_guide", description: "사건연구(Event Study) 설계 가이드", inputSchema: { type: "object", properties: { event_type: { type: "string", description: "사건 유형" }, staggered: { type: "boolean", description: "시차적 처치 여부" }, estimator: { type: "string", enum: ["twfe", "cs", "sa", "did_m"], description: "추정량" }, }, required: ["event_type"], }, },
- src/tools/index.ts:337-345 (schema)Input schema definition for the event_study_guide tool, specifying properties and required fields for validation.inputSchema: { type: "object", properties: { event_type: { type: "string", description: "사건 유형" }, staggered: { type: "boolean", description: "시차적 처치 여부" }, estimator: { type: "string", enum: ["twfe", "cs", "sa", "did_m"], description: "추정량" }, }, required: ["event_type"], },