psm_guide
Perform propensity score matching for causal inference by selecting matching methods and checking covariate balance in quantitative research.
Instructions
성향점수매칭 가이드 (추정, 매칭, 균형검정)
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": {
"matching_method": "<matching_method>"
},
"name": "psm_guide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matching_method | Yes | 매칭 방법 | |
| balance_check | No | 균형검정 포함 |
Implementation Reference
- src/tools/index.ts:1442-1454 (handler)The main handler function for the 'psm_guide' tool. It returns a guide including steps for propensity score matching and balance metrics based on the input matching_method.
function handlePsmGuide(args: Record<string, unknown>) { return { matching_method: args.matching_method, steps: [ "1. Propensity score estimation (logit/probit)", "2. Check common support", "3. Perform matching", "4. Balance check (standardized differences <0.1)", "5. Estimate treatment effect on matched sample" ], balance_metrics: ["Standardized mean difference", "Variance ratio", "Overlap plots"] }; } - src/tools/index.ts:307-321 (schema)The input schema definition for the 'psm_guide' tool, specifying parameters like matching_method (required, enum) and optional balance_check.
name: "psm_guide", description: "성향점수매칭 가이드 (추정, 매칭, 균형검정)", inputSchema: { type: "object", properties: { matching_method: { type: "string", enum: ["nearest", "caliper", "kernel", "full"], description: "매칭 방법" }, balance_check: { type: "boolean", description: "균형검정 포함" }, }, required: ["matching_method"], }, }, - src/tools/index.ts:824-825 (registration)The registration of the 'psm_guide' tool handler in the switch statement of handleToolCall function.
case "psm_guide": return handlePsmGuide(args);