Learn R Programming

loopevd (version 1.0.2)

qevd_vector: Return a Vector of EVD Quantiles

Description

Return a Vector of EVD Quantiles

Usage

qevd_vector(x, p, evd_mod_str, interval = NULL, lower.tail = TRUE, nams = NULL)

Value

gives the quantile function corresponding to p

Arguments

x

vector of EVD parameters

p

vector of probabilities.

evd_mod_str

either a string "fgumbel", "fgev" or "fgumbelx" from the extreme value distribution (evd) in the evd package

interval

A length two vector containing the end-points of the interval to be searched for the quantiles, passed to the uniroot function.

lower.tail

Logical; if TRUE (default), P (\(x \le y\)), otherwise P (X > x).

nams

names of the values of x (optional)

See Also

evd::qgev(), evd::qgumbelx()

Examples

Run this code
qevd_vector(c(1,0.5),1-0.05,"fgumbel",nams = c("loc","scale"))
df = data.frame(loc = 1,scale = 0.5)
qevd_vector(df,1-0.05,"fgumbel")

Run the code above in your browser using DataLab