The help for the pnorm
function states:
It says that pnorm
gives the "distribution function", but it seems that it gives the quantile,
for example, pnorm(q = 0, 0, 1)
returns 0.5
, which suggests that q=0
refers to the 50th quantile of a N(0,1). I understand what the "normal probability density function" is, but not why pnorm
is called a 'distribution function'.
The R
help says that the q
argument is a "vector of quantiles", but it appears in practice that q
represents an observed value.
What I want to know is: if I observe '2', what does pnorm(2)
say about my assumption that it came from a N(0,1) distribution?
vector of probabilities
..." is incorrect. The documentation under ?pnorm clearly says that the argument q is a vector of quantiles. $\endgroup$pnorm(q=2)
would work ifq
is a quantile. $\endgroup$q=2
in an expression likepnorm(q=2)
refers to a value of a standard normal distribution. The result, 0.977 = 97.7%, says that 97.7% of a normal distribution lies at or below $2$. $\endgroup$