- Home
- Skills
- Research & Analysis
- regression diagnostics
regression diagnostics
An evidence-based auditor for R and statsmodels regression summaries that checks diagnostics and flags causal overreach.
Free
Works with the AI Agents you already use
regression diagnostics
Example session with this skill installed
Check this statsmodels OLS summary for a paper I'm writing:
Dep. Variable: Y, R-squared: 0.045, Adj. R-squared: 0.012, F-statistic: 1.35, Prob (F-statistic): 0.25. 5 predictors, 30 observations.
- Read your context and instructions
- Compiled the regression diagnostics
I have audited the provided statsmodels OLS summary. Below is the six-dimension diagnostic report based on the provided values.
Regression Diagnostic Report
| Dimension | Status | Evidence | Interpretation |
|---|---|---|---|
| Sample Size | WARNING | n=30, k=5 | Fails the 10x rule (n < 50). Model may be overfitted or underpowered. |
| Model Fit | WARNING | F-p=0.25, R²=0.045 | The overall model is not statistically significant. Interpretation of coefficients is discouraged. |
| Coefficients | MISSING | No SE/P-values provided | Cannot verify significance or effect sizes for individual predictors. |
| Collinearity | MISSING | VIF not reported | Risk of multicollinearity cannot be assessed from this summary. |
| Residuals | MISSING | No tests provided | Linearity, homoscedasticity, and normality assumptions are unchecked. |
| Boundaries | PASS | No causal claims made | Input was purely numerical; no unjustified causal language detected. |
Missing Items
- Coefficient table (Estimates, Standard Errors, p-values, Confidence Intervals).
- Variance Inflation Factor (VIF) for all 5 predictors.
- Residual diagnostic tests (e.g., Breusch-Pagan, Shapiro-Wilk).
Boundary Statement
Evidence Limitation: With a non-significant F-statistic (0.25), this model fails to reject the null hypothesis. Do not report individual predictors as significant.
Causal Warning: These results show correlation only. Avoid using terms like "impact," "influence," or "leads to" in your draft.
Next steps
- Re-run the model in your environment to extract the full coefficient table and VIF values.
- Perform residual diagnostics to ensure the OLS assumptions are not violated before reporting.
- Consider increasing sample size or simplifying the model given the low observations-to-predictor ratio.
Connects securely to your tools. The creator never sees your data.
About this skill
Regression analysis is prone to over-interpretation, missing assumptions, and causal fallacies. This skill audits R summary() or Python statsmodels OLS outputs to ensure your statistical reporting is grounded in evidence.
What it does
- Data Validation extracts sample sizes and predictor counts to check against heuristic rules like the 10x rule for degrees of freedom.
- Model Diagnostics evaluates R-squared, Adjusted R-squared, and F-statistics to confirm overall model fit.
- Coefficient Audit verifies p-values against confidence intervals and flags missing effect size discussions.
- Assumption Checking scans for collinearity via VIF and identifies missing reports for linearity, independence, homoscedasticity, and normality.
- Language Scrutiny detects and flags unjustified causal language like "drives" or "causes" in the proposed report context.
How it works
- Provide a raw text block from an R
summary(lm_model)or astatsmodels.api.OLSresults summary. - The agent extracts every statistical value, mapping them to a structured diagnostic framework.
- It applies a six-point check ranging from sample size adequacy to residual assumption reporting.
- It generates a standardized report using
PASS,WARNING,MISSING, orBLOCKEDstatus for each dimension.
Frameworks & tools
Works with standard output from R (base stats) and Python (statsmodels). Can also consume structured JSON for automated pipeline integration.
Why this beats prompting it yourself
Generic LLMs often hallucinate p-values or miss the nuance between correlation and causation. This skill enforces a rigid six-dimension check that refuses to "fill in the blanks," ensuring you never report a metric that wasn't actually in your output.
Use cases
- Audit a regression summary before submitting a paper to ensure all diagnostic metrics are present.
- Detect multicollinearity risks by checking VIF values against heuristic thresholds.
- Sanity-check a colleague's model output to verify if the sample size supports the number of predictors.
- Review draft report language to remove accidental causal claims before peer review.
Known limitations
Does not perform model re-fitting, variable selection, or predictions. It cannot analyze raw datasets (CSV/Parquet) and relies entirely on the provided summary text or JSON.
Cannot re-fit models or read raw data files. Only audits provided summary text or JSON. Refuses causal inference, variable selection, and predictive tasks.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed today
- Free with an Agensi account