Skip to content

Instantly share code, notes, and snippets.

@liangyy
Last active August 9, 2019 15:40
Show Gist options
  • Save liangyy/e580a36154586148cca7fd4cd973f502 to your computer and use it in GitHub Desktop.
Save liangyy/e580a36154586148cca7fd4cd973f502 to your computer and use it in GitHub Desktop.
Convert z-score to p-value with crazy precision
zval2pval = function(z) {
exp(pnorm(abs(z), log.p=T, low=F)) * 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment