model_diagnostics
Assess a fitted model's validity: tests residual normality, heteroscedasticity, autocorrelation, multicollinearity, and identifies influential cases with diagnostic plots.
Instructions
Full diagnostic report for a fitted model: residual normality, Breusch-Pagan test for heteroscedasticity, Durbin-Watson test for independence, VIF for multicollinearity, the most influential cases by Cook's distance and leverage, and the four standard diagnostic plots.
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": {
"model": "<model>"
},
"name": "model_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Name of a fitted model in the session. | |
| plots | No | Include diagnostic plots. | |
| digits | No | Decimal places. | |
| influence_n | No | How many influential cases to list. |