statsmodels / statsmodels/statsmodels

GLM Binomial Trials

Open
#203 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

comp-genmod design type-enh
Dominant language
Python
Stars
11.6k
Forks
3.6k
Avg merge
7h 37m
Merged PRs (30d)
96

Description

Should we keep data_weights that was dropped in commit 304ac9b? Or make Binomial family take a trials keyword. Use case, you have the success rate, but you also have a different number of trials for each observation in a separate variable. It's more convenient to not have to convert to success, failure.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing commit 304ac9b and the current Binomial family implementation to understand why data_weights was removed and how binomial observations are represented. Clarify whether the desired outcome is restoring data_weights or adding a trials keyword for per-observation trial counts, then define tests covering success rates with varying trials.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.