Skip to content

Logic swapped for cooks distance/dffits in influence_plot? #3103

Closed

Description

@jspeis

I was looking at the code for influence_plot

and I happened to notice the following block:

    if criterion.lower().startswith('dff'):
        psize = infl.cooks_distance[0]
    elif criterion.lower().startswith('coo'):
        psize = np.abs(infl.dffits[0])

but should that be the other way around? i.e.:

    if criterion.lower().startswith('dff'):
        psize = np.abs(infl.dffits[0])
    elif criterion.lower().startswith('coo'):
        psize = infl.cooks_distance[0]

Activity

  1. changed the title [-]Logic swapped for cooks distance/dffits in plot_influence?[/-] [+]Logic swapped for cooks distance/dffits in influence_plot?[/+] on Jul 11, 2016
  2. added this to the 0.8 milestone on Jul 12, 2016
  3. josef-pkt commented on Aug 10, 2016

    @josef-pkt
    Member

    Thanks for finding and reporting. (I don't know why I didn't reply during my vacation.)
    I'm fixing this this week for 0.8

  4. added
    type-bug-wrong
    and removed on Aug 12, 2016
  5. added a commit that references this issue on Aug 14, 2016
    24cf9d2
  6. added a commit that references this issue on Jan 27, 2017
    6c481f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-regressiontype-bug-wrong

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions