-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Better weighted Median? #72
Comments
Hi, |
I found the answer, no need to change the package: line 70 of https://github.com/gdemin/expss/blob/master/R/weighted_stats.R here an reprod example: testdata%>% which gives the same median like SPSS or Stata 13. Also the help-file of matrixStats says, that interpolate Needs to be F, so that ties is working. Greetings! |
Fixed in 0.10.7 |
In today's analysis of a colleague who uses SPSS, I found that the weighted median does not always correspond. The current implementation using matrixStats::weightedMedian matches the grouped median, but this is most likely not intended. I would rather recommend sjstats::weighted_median() or MetricsWeighted::weighted_median(), especially since these also allow the calculation of quantiles. I would be very pleased, if my suggestion would be implemented. Thanks for the great job you did with the package.
The text was updated successfully, but these errors were encountered: