Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cdfnor

Normal distribution


Description

Distribution function and quantile function of the normal distribution.

Usage

cdfnor(x, para = c(0, 1))
quanor(f, para = c(0, 1))

Arguments

x

Vector of quantiles.

f

Vector of probabilities.

para

Numeric vector containing the parameters of the distribution, in the order mu, sigma (location, scale).

Details

The normal distribution with location parameter mu and scale parameter sigma has probability density function

f(x) = (1/ sigma sqrt(2 pi)) exp( -(x-mu)^2 / (2 sigma^2) ) .

Value

cdfnor gives the distribution function; quanor gives the quantile function.

Note

The functions expect the distribution parameters in a vector, rather than as separate arguments as in the standard R distribution functions pnorm and qnorm.

See Also

pnorm for the standard R version of the normal distribution.

cdfgno for the generalized normal distribution, which generalizes the normal distribution.

Examples

# Random sample from the normal distribution
# with mean 0 and standard deviation 3.
quanor(runif(100), c(0,3))

lmom

L-Moments

v2.8
Common Public License Version 1.0
Authors
J. R. M. Hosking
Initial release
2019-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.