Description Usage Arguments Details Value Note See Also Examples
These functions provide information about the Homework 7 Question 2 distribution. dhw7q2 gives the density, phw7q2 gives the distribution function, qhw7q2 gives the quantile function, and rhw7q2 generates random deviates.
1 2 3 4 5 6 7 |
x, q |
vector of quantiles |
log, log.p |
logical; if TRUE, probabilities p are given as log(p) |
lower.tail |
logical; if TRUE (default), probabilites are P[X ≤ x] otherwise, P[X > x] |
p |
vector of probabilites |
n |
number of observations. If length(n) > 1, the length is taken to be the number required |
This distribution has density
f(x) = 6x(1-x)
for 0 < x < 1
dhw7q2 gives the density, phw7q2 gives the distribution function, qhw7q2 gives the quantile function, and rhw7q2 generates random deviates. The length of the result is determined by n for rnorm, and is the maximum of the lengths of the numerical arguments for the other functions. The numerical arguments other than n are recycled to the length of the result. Only the first elements of the logical arguments are used.
The characteristics of output from pseudo-random number generators (such as precision and periodicity) vary widely. See .Random.seed for more information on R's random number generation algorithms.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.