rdd_bandwidth
Select optimal bandwidth parameters for regression discontinuity designs using IK, CCT, or CV methods to ensure valid causal inference results.
Instructions
RDD 대역폭 선택 가이드
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"design": "<design>"
},
"name": "rdd_bandwidth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | Yes | RDD 유형 | |
| method | No | 대역폭 선택 방법 |
Implementation Reference
- src/tools/index.ts:1456-1467 (handler)The handler function implementing the 'rdd_bandwidth' tool. Returns guidance on RDD bandwidth selection methods (IK, CCT, CV) including descriptions and example code snippets for R and Stata.
function handleRddBandwidth(args: Record<string, unknown>) { return { design: args.design, methods: { ik: "Imbens-Kalyanaraman (2012) - 기본 선택", cct: "Calonico-Cattaneo-Titiunik (2014) - bias correction", cv: "Cross-validation - 데이터 기반" }, stata: "rdrobust y x, c(0) kernel(triangular)", r: "rdrobust(Y, X, c = 0)" }; } - src/tools/index.ts:322-333 (registration)Registration of the 'rdd_bandwidth' tool in the exported tools array, including name, description, and input schema.
{ name: "rdd_bandwidth", description: "RDD 대역폭 선택 가이드", inputSchema: { type: "object", properties: { design: { type: "string", enum: ["sharp", "fuzzy"], description: "RDD 유형" }, method: { type: "string", enum: ["ik", "cct", "cv"], description: "대역폭 선택 방법" }, }, required: ["design"], }, }, - src/tools/index.ts:826-827 (registration)Registration of the tool handler in the switch statement of handleToolCall function.
case "rdd_bandwidth": return handleRddBandwidth(args); - src/tools/index.ts:325-332 (schema)Input schema definition for the 'rdd_bandwidth' tool, specifying parameters for RDD design type and bandwidth selection method.
inputSchema: { type: "object", properties: { design: { type: "string", enum: ["sharp", "fuzzy"], description: "RDD 유형" }, method: { type: "string", enum: ["ik", "cct", "cv"], description: "대역폭 선택 방법" }, }, required: ["design"], },