We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ranktransform(sign = TRUE)
Currently, if x contains 0s, these are marked as NAs.
x
However, there might be situations where this is unwanted (see easystats/effectsize#502).
We can add a zeros= argument, that can take the values:
zeros=
"na"
"signrank"
if (zeros == "na") { out <- rep(NA, length(x)) ZEROES <- x == 0 out[!ZEROES] <- sign(x[!ZEROES]) * rank(abs(x[!ZEROES]), ties.method = method, na.last = "keep") } else if (zeros == "signrank") { out <- sign(x) * rank(abs(x), ties.method = method, na.last = "keep") }
The text was updated successfully, but these errors were encountered:
Sounds good to me, @strengejacke @IndrajeetPatil thoughts?
Sorry, something went wrong.
Agree.
Thanks.
Yes, the new argument with the mentioned default sounds like a good idea to me.
zeros
ranktransform()
Successfully merging a pull request may close this issue.
Currently, if
x
contains 0s, these are marked as NAs.However, there might be situations where this is unwanted (see easystats/effectsize#502).
We can add a
zeros=
argument, that can take the values:"na"
- the current method."signrank"
- keep them during the ranking and mark them as 0.The text was updated successfully, but these errors were encountered: