wakeby: Wakeby distribution

qwakebyR Documentation

Wakeby distribution

Description

Wakeby distribution

Usage

qwakeby(u, alpha, beta, gamma, delta, xi)

fwakeby(u, alpha, beta, gamma, delta, xi, log = FALSE)

dqwakeby(u, alpha, beta, gamma, delta, xi, log = FALSE)

rwakeby(n, alpha, beta, gamma, delta, xi)

pwakeby(q, ..., lower = 0, upper = 1, tol = 1e-06, silent = TRUE, trace = 0)

dwakeby(x, alpha, beta, gamma, delta, xi, tol = 1e-06, log = FALSE)

is_wakeby_valid(alpha, beta, gamma, delta, xi, n_grid = 100L, s_grid = 2L)

ffwakeby(u, alpha, beta, gamma, delta, xi)

Arguments

u

numeric vector of probabilities

alpha

Wakeby scale parameter \alpha

beta

Wakeby shape parameter \beta

gamma

Wakeby scale parameter \gamma

delta

Wakeby shape parameter \delta

xi

Wakeby location parameter \xi

log

should the log density be returned

n

numeric number of samples to draw

q

vector of quantiles

...

used by method

lower, upper

the stats::uniroot lower and upper end points of the interval to be searched. Defaults are 0 and 1, respectively

tol

the stats::uniroot desired accuracy (convergence tolerance). Default value 1e-06

silent

the base::try argument. Default is TRUE

trace

integer number passed to stats::uniroot; if positive, tracing information is produced. Higher values giving more details.

x

numeric vector of data

n_grid

integer size of helper grid to be passed to make_pgrid. Default is 50

s_grid

integer beta shape of helper grid to be passed to make_pgrid. Default is 5

Details

Support \xi to \infty if \delta \geq 0, \gamma>0 or \xi to \xi+(\alpha/\beta)-(\gamma/\delta) otherwise.

Value

quantiles, QDF, DQF, random samples or probabilities of Wakeby disribution

Examples

p_grd <- make_pgrid()
q_grd <- qwakeby(p_grd, 5, 3, 0.1, 0.2, 0)
f_grd <- fwakeby(p_grd, 5, 3, 0.1, 0.2, 0)
dq_grd <- dqwakeby(p_grd, 5, 3, 0.1, 0.2, 0)
d_grd <- dwakeby(q_grd,5, 3, 0.1, 0.2, 0)
plot(q_grd,dq_grd, type="l", lwd=1, lty=2)
lines(q_grd,d_grd, col="firebrick")
is_wakeby_valid(10,5,1,0.3,0)

dmi3kno/qpd documentation built on Sept. 29, 2024, 6:39 p.m.