Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 288
The Normal Distribution in R
ОглавлениеR has four built-in functions to work with the normal distribution. They are described below.
dnorm(x, mean, sd): The height of the probability distribution
pnorm(x, mean, sd): The cumulative distribution function (the probability of the observation to be lower than x)
dnorm()
pnorm()
qnorm(p, mean, sd): Gives a number whose cumulative value matches the given probability value p
rnorm(n, mean, sd): Generates normally distributed variables,
qnorm()
rnorm()
with
x: A vector of numbers
p: A vector of probabilities
n: The number of observations(sample size)
mean: The mean value of the sample data (default is zero)
sd: The standard deviation (default is 1).