Last chance! 50% off unlimited learning
Sale ends in
Density, distribution function, quantile function and random generation for the Fréchet distribution (inverse Weibull distribution).
dfrechet(x, shape, loc = 0, scale = 1, log = FALSE)
pfrechet(x, shape, loc = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)
qfrechet(p, shape, loc = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)
rfrechet(n, shape, loc = 0, scale = 1)
dfrechet
gives the density function evaluated in pfrechet
the CDF evaluated in qfrechet
the quantile function evaluated in
rfrechet
returns a random sample of length
Vector of quantiles.
Vector of probabilities.
Number of observations.
Shape parameter of the Fréchet distribution.
Location parameter of the Fréchet distribution, default is 0.
Scale parameter of the Fréchet distribution, default is 1.
Logical indicating if the densities are given as FALSE
.
Logical indicating if the probabilities are of the form TRUE
) or FALSE
). Default is TRUE.
Logical indicating if the probabilities are given as FALSE
.
Tom Reynkens.
The Cumulative Distribution Function (CDF) of the Fréchet distribution is equal to
shape
and scale
need to be strictly positive.
tFréchet
, Distributions
# Plot of the PDF
x <- seq(1,10,0.01)
plot(x, dfrechet(x, shape=2), xlab="x", ylab="PDF", type="l")
# Plot of the CDF
x <- seq(1,10,0.01)
plot(x, pfrechet(x, shape=2), xlab="x", ylab="CDF", type="l")
Run the code above in your browser using DataLab