Skip to content

GLM Binomial Trials #203

Open
Open

Description

@jseabold

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.

Activity

  1. jseabold commented on Jul 17, 2012

    @jseabold
    MemberAuthor

    I'm +1'ing myself for adding back data_weights or maybe making it an option to the Binomial family is possible.

  2. jseabold commented on Jul 17, 2012

    @jseabold
    MemberAuthor

    Relatedly, predict should have an option to predict the number of events rather than just returning the probabilities

  3. josef-pkt commented on May 4, 2014

    @josef-pkt
    Member

    http://stackoverflow.com/questions/23339416/is-there-a-way-to-implement-sample-weights-in-python-logistic-regression

    I've never before looked through this part of the code.

    I think we need to support frequency and case weights in general, having a specific option for binomial looks strange to me. The initial weights are defined through endog but it's a bit strange that the weight handling is only done in fit, AFAICS.

    Do we have unit tests that check that the weights are properly included in all the Results?
    I couldn't see any.

  4. josef-pkt commented on May 4, 2014

    @josef-pkt
    Member

    Binomial/Binary is special in that we can reconstruct binary data from caseweights plus success rate.
    The standard coding with case weights would have two rows, one with successes (y=1, case_weights=number of successes) and a corresponding one with failures (y=0)
    endog in this case would be 1-d with a separate 1-d case_weights (or freq_weights)

  5. josef-pkt commented on May 4, 2014

    @josef-pkt
    Member

    adding temporarily label prio-high to check examples and unit tests

  6. added this to the 0.7 milestone on Jan 13, 2015
  7. josef-pkt commented on Jan 13, 2015

    @josef-pkt
    Member

    check and triage for 0.7
    I have no idea

  8. josef-pkt commented on Feb 12, 2015

    @josef-pkt
    Member

    not urgent, this is a refactoring that doesn't fit a generic pattern, maybe in 0.8

  9. modified the milestones: 0.8, 0.7 on Feb 15, 2015
  10. removed this from the 0.8 milestone on Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions