| idist | R Documentation |
Let X come from some location-scale family
f(x) = \frac{1}{\sigma}\rho\left(\frac{X - \mu}{\sigma}\right),
for some standard distribution \rho(). You provide \rho(),
\mu and \sigma and these functions will provide the density,
distribution, quantile, and random generation for Z = 1/X. Convenience
arguments for the normal, Cauchy, and uniform are provided.
didist(
x,
center = 0,
scale = 1,
fam = c("normal", "cauchy", "uniform"),
ddist = NULL,
log = FALSE,
...
)
pidist(
q,
center = 0,
scale = 1,
fam = c("normal", "cauchy", "uniform"),
pdist = NULL,
lower.tail = TRUE,
log.p = FALSE,
...
)
qidist(
p,
center = 0,
scale = 1,
fam = c("normal", "cauchy", "uniform"),
qdist = NULL,
pdist = NULL,
...
)
ridist(
n,
center = 0,
scale = 1,
fam = c("normal", "cauchy", "uniform"),
rdist = NULL,
...
)
x, q |
vector of quantiles |
center |
The center parameter |
scale |
The scale parameter |
fam |
One of |
ddist |
Density function of standard distribution |
log, log.p |
logical; if |
... |
Additional arguments for |
pdist |
Cumulative distribution function of standard distribution. |
lower.tail |
logical; if |
p |
vector of probabilities |
qdist |
Quantile function of standard distribution. |
n |
sample size |
rdist |
Random generation of standard distribution. |
Either a random sample (ridist),
the density (didist), the tail
probability (pidist), or the quantile
(qidist) of the inverse distribution.
didist(): Density function.
pidist(): Distribution function.
qidist(): Quantile function.
ridist(): Random generation.
David Gerard
didist(1, fam = "normal")
didist(1, center = 3, scale = 2, ddist = dt, df = 1)
pidist(1, fam = "normal")
pidist(1, center = 3, scale = 2, pdist = pt, df = 1)
qidist(0.1, fam = "normal")
qidist(0.1, center = 3, scale = 2, qdist = qt, pdist = pt, df = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.