Last active
September 16, 2021 13:49
-
-
Save carbocation/504d88d7a16e014455df3aacd759fc0f to your computer and use it in GitHub Desktop.
invnorm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See Yang et al Nature 2012 https://www.nature.com/articles/nature11401 | |
# supplement page 18 | |
invnorm <- function(x) { | |
qnorm((rank(x, na.last="keep")-0.5)/sum(!is.na(x))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment