Nothing
z2p <- function(z,
alternative = "two.sided"){
# vectorize function in all arguments
pV <- mapply(FUN = function(z, alternative) {
if (!is.numeric(z))
stop("z must be numeric")
if (!(alternative %in% c("less", "greater", "two.sided", "one.sided")))
stop('alternative must be either "less", "greater", "two.sided", or "one.sided"')
if (alternative == "two.sided")
p <- 2*pnorm(abs(z), lower.tail = FALSE)
if (alternative == "less")
p <- pnorm(q = z, lower.tail = TRUE)
if (alternative == "greater" | alternative == "one.sided")
p <- pnorm(q = z, lower.tail = FALSE)
return(p)
}, z, alternative)
return(pV)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.