statsmodels

Generate Statsmodels API patterns for regression, GLM, discrete choice, and time-series analyses.

14|2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/andikarachman/data-science-plugin --skill statsmodels-andikarachman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statsmodels
Source: https://github.com/andikarachman/data-science-plugin/tree/main/skills/statsmodels
Command: npx skills add https://github.com/andikarachman/data-science-plugin --skill statsmodels-andikarachman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides ready-to-use Statsmodels API patterns for fitting OLS, GLM, discrete choice, and time-series models, along with diagnostics and model comparison workflows to accelerate statistical analysis.

Core Features & Use Cases

  • Fitting a broad set of models: OLS, WLS, GLS, GLSAR, GLM, Poisson, Negative Binomial, and ordinal models.
  • Diagnostics and model evaluation: residual analyses, influence measures, robust SEs, and information criteria.
  • Reference-driven workflows: time-series (ARIMA/SARIMAX), discrete choice, and formula-based modeling with comprehensive examples.

Quick Start

Generate Statsmodels API patterns for regression, GLM, discrete choice, and time-series analyses.

Frequently Asked Questions about statsmodels

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a generalized linear model in Python for count data?

To build a generalized linear model for count data, apply Statsmodels API patterns for fitting Poisson or Negative Binomial models. This Skill provides formula-based modeling examples and guidance on interpreting model specifications for data analytics workflows.

What's the best way to run residual diagnostics and compute robust standard errors after fitting a regression?

For residual diagnostics and robust standard errors, use Statsmodels API patterns that support residual analyses, influence measures, and robust SEs. This Skill delivers reference-driven workflows for evaluating model assumptions and comparing information criteria across fitted models.

Can I use Statsmodels for time-series forecasting with ARIMA and SARIMAX models?

Yes, you can use Statsmodels for time-series forecasting by applying ARIMA and SARIMAX patterns. This Skill provides reference-driven workflows and code samples for time-series analysis, applicable in finance, economics, and social sciences for forecasting and model comparison.

Does this Skill support discrete choice and ordinal models for social science analytics?

This Skill supports discrete choice and ordinal models for social science analytics by providing Statsmodels API patterns. It includes guidance on model specification, interpretation, and information criteria for comparing discrete choice models within data science workflows.

How do I compare OLS, WLS, and GLS models using information criteria?

To compare OLS, WLS, and GLS models using information criteria, apply Statsmodels API patterns for model evaluation. This Skill provides diagnostic workflows and reference examples for computing information criteria and selecting the best fitting linear model.

When should I use formula-based modeling instead of array-based specification in Statsmodels?

Use formula-based modeling in Statsmodels when you need readable model specification and interpretation within data analytics workflows. This Skill provides reference-driven examples for formula-based modeling across regression, GLM, and time-series analyses to accelerate statistical analysis.