loglogistic {icensBKL} | R Documentation |
Log-logistic distribution
Description
Density, distribution function, quantile function and random generation for the log-logistic distribution.
Usage
dllogis(x, shape, scale=1, log=FALSE)
pllogis(q, shape, scale=1, lower.tail=TRUE, log.p=FALSE)
qllogis(p, shape, scale=1, lower.tail=TRUE, log.p=FALSE)
rllogis(n, shape, scale=1)
Arguments
x , q |
vector of quantiles. |
p |
vector of probabilities. |
n |
number of observations. |
shape |
the shape parameter |
scale |
the scale parameter |
log , log.p |
logical; if |
lower.tail |
logical; if |
Details
Log-logistic distribution
has a density
and a distribution function
where and
are positive
parameters (
is the inverse of the
scale
parameter and
is the
shape
parameter).
The mean and the variance are given by
Value
dllogis
gives the density,
pllogis
gives the distribution function,
qllogis
gives the quantile function,
and rllogis
generates random deviates.
Author(s)
Arnošt Komárek arnost.komarek@mff.cuni.cz
See Also
Examples
set.seed(1977)
print(x <- rllogis(10, shape=3, scale=5))
print(d <- dllogis(x, shape=3, scale=5))
print(p <- pllogis(x, shape=3, scale=5))
qllogis(p, shape=3, scale=5)
[Package icensBKL version 1.5 Index]