Skip to content
Back to skills

Discrete And Count Models

ASecurity

"Use statsmodels discrete choice and count model APIs for Logit,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
datagogitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill discrete-and-count-models --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Discrete And Count Models?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Discrete And Count Models
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-discrete-and-count-models/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-discrete-and-count-models)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: discrete-and-count-models
description: "Use statsmodels discrete choice and count model APIs for Logit,
  Probit, MNLogit, OrderedModel, Poisson, NegativeBinomial, zero-inflated,
  hurdle, truncated, conditional models, marginal effects, and convergence
  troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# Discrete and count models

Use this sub-skill for binary choice, multinomial choice, ordered outcomes, count models, zero-inflated/hurdle/truncated counts, conditional models, marginal effects, post-estimation prediction, and failures such as perfect separation or non-convergence.

## Workflow

1. Identify the outcome type: binary, ordered categorical, unordered multinomial, nonnegative count, overdispersed count, zero-inflated/hurdle, truncated, or grouped conditional.
2. Build `endog` and `exog`, adding a constant for array APIs. Formula wrappers exist for common classes through `statsmodels.formula.api`.
3. Fit the simplest defensible model first; only then add overdispersion, inflation, truncation, or conditional structure.
4. Inspect convergence, parameter magnitudes, predicted probabilities/means, and marginal effects. For broad hypothesis tests or residual diagnostics, cross-route to [statistical-tests-and-diagnostics](../statistical-tests-and-diagnostics/SKILL.md).

## Read or run

- Read [references/api-reference.md](references/api-reference.md) for model classes, signatures, and result surfaces.
- Read [references/workflows.md](references/workflows.md) for binary, multinomial/ordered, and count recipes.
- Read [references/troubleshooting.md](references/troubleshooting.md) for perfect prediction, separation, overdispersion, zero inflation, convergence, and prediction shape issues.
- Run [scripts/smoke_discrete_models.py](scripts/smoke_discrete_models.py) to check binary Logit and Poisson workflows on deterministic local data.

## Boundaries

- Use [linear-and-formula-models](../linear-and-formula-models/SKILL.md) for GLM setup unless the task explicitly needs discrete-model-specific post-estimation, marginal effects, zero inflation, truncation, or choice-model classes.
- Use [time-series-analysis](../time-series-analysis/SKILL.md) for time-indexed discrete models only when the time-series structure is the core request.
- Use [datasets-results-graphics](../datasets-results-graphics/SKILL.md) for result export, tables, or plots after fitting.

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md1.8 KB
  • references/troubleshooting.md1.5 KB
  • references/workflows.md1.8 KB
  • scripts/smoke_discrete_models.py1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.