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
Weighted quantiles #2707
Weighted quantiles #2707
Conversation
2d, returns a pandas DataFrame indexed by the probability | ||
points, with each column containing the quantiles for the | ||
corresponding column of the data. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to mention that it uses simple averaging between points, i.e. midpoint.
fbf7cef
to
e48ca22
Compare
This seems to have been forgotten. @kshedden can you rebase? |
I didn't realize it is already rebased, and just a few merges behind master. (I only looked at the commit date) so merging |
I added weighted quantiles to the
DescrStatsW
class. The calculation is straightforward, right out of the SAS docs:https://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_univariate_sect028.htm
I couldn't find a good way to integrate tests into the existing test code, so I started an independent testing mixin class. This provides some additional test coverage for other statistics (mean, var, sum, sem, etc).