R/invprobit.R

#' Convert Probit Scale to Proportions
#'
#' Convert values on the probit scale to their proportions on the 0 to 1 scale.
#' @param quan
#'   A numeric vector of probit quantiles.
#' @return
#'   A numeric vector of proportions the same length as \code{quan}.
#' @export
#' @import
#'   stats
#' @details
#'   Simply calls \code{\link{pnorm}(quan)}.
#' @examples
#' invprobit(c(-3, -1, 0, 1, 3))

invprobit <- function(quan) {
  pnorm(quan)
  }

Try the LW1949 package in your browser

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

LW1949 documentation built on May 2, 2019, 6:11 a.m.