R/phi.R

Defines functions phi

Documented in phi

#' Phi
#'
#' The standard normal cumulative density function.
#'
#' A wrapper on [stats::pnorm()].
#'
#' @param x A numeric atomic object.
#' @return A numeric atomic object.
#' @family translations
#' @export
#' @examples
#' phi(0:2)
phi <- function(x) {
  chk_numeric(x)
  stats::pnorm(x)
}

Try the extras package in your browser

Any scripts or data that you put into this service are public.

extras documentation built on May 31, 2023, 6:22 p.m.