Skip to content

Conversation

@tbeason
Copy link

@tbeason tbeason commented Apr 8, 2020

I had use for Cook's distance, was a little surprised it didn't already exist.

This is a stupid simple implementation of it. I did not test it, nor did I really do any optimization. But it has a docstring!

Debated calling it cooksd, but I think the longer name cooksdistance might be preferred?

@tbeason
Copy link
Author

tbeason commented Apr 8, 2020

Ok ok I tested it and results match what I can get in Python.

@nalimilan
Copy link
Member

Thanks. Can you add tests for the function? What's the name used by other software?

@ericqu ericqu mentioned this pull request Mar 24, 2021
Compute Cook's distance for each observation, an estimate of the influence of each data point.
"""
function cooksdistance(obj::LinearModel)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function cooksdistance(obj::LinearModel)
function StatsBase.cooksdistance(obj::LinearModel)

@nalimilan
Copy link
Member

Superseded by #415.

@nalimilan nalimilan closed this Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants