tukeyMyerson: Density function for Tukey-Myerson distribution (Myerson...

tukeyMyersonR Documentation

Density function for Tukey-Myerson distribution (Myerson distribution with Tukey lambda base function).

Description

Density function for Tukey-Myerson distribution (Myerson distribution with Tukey lambda base function).

Usage

qtukeyMyerson(
  p,
  q1,
  q2,
  q3,
  alpha = 0.25,
  tlambda = 0,
  lower.tail = TRUE,
  log.p = FALSE
)

ftukeyMyerson(
  p,
  q1,
  q2,
  q3,
  alpha = 0.25,
  tlambda = 0,
  log = FALSE,
  lower.tail = TRUE,
  log.p = FALSE
)

dqtukeyMyerson(
  p,
  q1,
  q2,
  q3,
  alpha = 0.25,
  tlambda = 0,
  log = FALSE,
  lower.tail = TRUE,
  log.p = FALSE
)

rtukeyMyerson(n, q1, q2, q3, alpha = 0.25, tlambda = 0)

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

Arguments

p

vector of probabilities

q1, q2, q3

numeric values representing bottom quantile, middle quantile (50th percentile) and top quantile. Quantiles are assumed to be symmetrical.

alpha

numerical fixed proportion of distribution below the bottom quantile. Default value is 0.25

tlambda

numerical Tukey lambda lambda parameter

lower.tail

logical; if TRUE (default), probabilities are P[X\leq x], otherwise, P[X > x]

log, log.p

logical; if TRUE, probabilities p are given as log(p)

n

number of observations. If 'length(n)>1“, the length is taken to be the number required.

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.

Value

a vector of probabilities of length equal to length(x)

a vector of exceedance probabilities of length equal to length(x).

Examples

qtukeyMyerson(0.25, 10, 20, 40)
flogitMyerson(0.25, 10, 20, 40)
dqlogitMyerson(0.25, 10, 20, 40)
rlogitMyerson(1, 10, 20, 40)
ptukeyMyerson(0.25, 10, 20, 40)

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