-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
methods for StatsBase.leverage
#425
Comments
I've been looking for this functionality and couldn't find it. So I created the function for doing so. (Derived from here: https://en.wikipedia.org/wiki/Leverage_(statistics)) I tested it against R's
Does anyone see an issue with what I have so far? |
I think @ararslan had an implementation somewhere -- oh yeah as part of his work on Cook's Distance for GLM: #510 @HiramTheHero your proposal is mathematically correct but generally computing an explicit matrix inverse is less than ideal. The inverse is slow to compute and the result is often very sensitive to numerical details. (Almost nothing in statistics except the sample mean is computed in practice with the textbook formulas. 🙁 ) |
Now that we have Cook's Distance, we can define this rather straightforwardly.
The text was updated successfully, but these errors were encountered: