-
Notifications
You must be signed in to change notification settings - Fork 79
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
Diff in means/props/medians #53
Comments
I’m on board with this and it makes sense to me. Can you make a pull request to the dev branch? Or would you like this implemented in version 0.0.1 on master? |
@andrewpbray: Mine will be sending a pull request to |
For the record, I was wrong earlier, subtraction is done in reverse alphabetical order since
|
@mine-cetinkaya-rundel what's the status of this? The addition of the order argument should work with the new formulation of success in specify. |
I'm working on it -- that's where the other question came about. |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Currently I believe the subtraction is being done in the alphabetical order of the levels if the categorical variable is character, and in the
levels
order if variable is factor. I think we need an order argument for calculate for"diff in ..."
situations. This is how I had solved this problem in theinference
function. Happy to do a PR but wanted to see (1) am I interpreting current status correctly and (2) is everyone on board with a neworder
argument that will be something likeorder = c("level1" - "level2")
which translates tomean(y[x == "level1"]) - mean(y[x == "level2"])
.The text was updated successfully, but these errors were encountered: