How to use R functions search and objects to find all possib
How to use R functions: search() and objects() to find all possible R built-in functions related to normal distribution.
How to use R functions: search() and objects() to find all possible R built-in functions related to normal distribution.
Solution
search() function gets the list of attached packages in the R search path.R has many built in functions.
The R built in functions related to normL distribution are dnorm(x,mean = 0, sd = 1, log = FALSE)
pnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE,)
qnorm(p, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE)
rnorm(n, mean = 0, sd =1)
x,q - vector of quintiles
p - vector of probabilities
n - number of observations
mean - vector of means
sd- vector of standard deviations
log, log.p - logical; if TRUE, probabilities p are given as log(p)
lower.tail - logical; if TRUE (default), probabilities are P[X<=x], otherwise P[X>x]
