Skip to main content
Glama

interpret_diagnostics

Interpret statistical diagnostic test results (VIF, DW, BP tests) to assess regression model validity and identify potential issues in quantitative analysis.

Instructions

진단 결과 해석 (VIF, DW, BP test 등)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
test_nameYes진단 검정명
statisticYes검정 통계량
p_valueNop-value
contextNo분석 맥락

Implementation Reference

  • The core handler function that executes the 'interpret_diagnostics' tool. It takes test_name and p_value (among others), provides predefined interpretations for common diagnostics like Hausman, Breusch-Pagan, Durbin-Watson tests based on p-value thresholds, and returns structured interpretation.
    function handleInterpretDiagnostics(args: Record<string, unknown>) { const testName = args.test_name as string; const pValue = args.p_value as number; const interpretations: Record<string, string> = { "hausman": pValue < 0.05 ? "FE 사용 권장 (RE 불일치)" : "RE 사용 가능 (더 효율적)", "breusch_pagan": pValue < 0.05 ? "이분산 존재 - Robust SE 사용" : "등분산 가정 충족", "durbin_watson": "DW≈2: 자기상관 없음, DW<1.5 또는 >2.5: 자기상관 의심" }; return { test: testName, p_value: pValue, interpretation: interpretations[testName.toLowerCase()] || "검정 결과 해석 필요" }; }
  • Input schema definition for the 'interpret_diagnostics' tool, specifying parameters like test_name (required), statistic (required), p_value, and context.
    inputSchema: { type: "object", properties: { test_name: { type: "string", description: "진단 검정명" }, statistic: { type: "number", description: "검정 통계량" }, p_value: { type: "number", description: "p-value" }, context: { type: "string", description: "분석 맥락" }, }, required: ["test_name", "statistic"], },
  • Tool registration in the exported tools array, including name, description, and inputSchema. This makes it available via MCP.
    name: "interpret_diagnostics", description: "진단 결과 해석 (VIF, DW, BP test 등)", inputSchema: { type: "object", properties: { test_name: { type: "string", description: "진단 검정명" }, statistic: { type: "number", description: "검정 통계량" }, p_value: { type: "number", description: "p-value" }, context: { type: "string", description: "분석 맥락" }, }, required: ["test_name", "statistic"], }, },
  • Dispatch case in the main handleToolCall switch statement that routes calls to 'interpret_diagnostics' to its handler function.
    case "interpret_diagnostics": return handleInterpretDiagnostics(args);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/seanshin0214/quantmaster-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server