cauchyMyerson: Density function for Cauchy Myerson distribution (Myerson...

cauchyMyersonR Documentation

Density function for Cauchy Myerson distribution (Myerson distribution with Cauchy base function).

Description

Density function for Cauchy Myerson distribution (Myerson distribution with Cauchy base function).

Usage

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

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

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

rcauchyMyerson(n, q1, q2, q3, alpha = 0.25)

pcauchyMyerson(q, q1, q2, q3, alpha = 0.25, lower.tail = TRUE, log.p = FALSE)

dcauchyMyerson(x, q1, q2, q3, alpha = 0.25, log = FALSE)

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

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.

x, q

vector of quantiles.

Value

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

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

Examples

qcauchyMyerson(0.25, 10, 20, 40)
fcauchyMyerson(0.25, 10, 20, 40)
dqcauchyMyerson(0.25, 10, 20, 40)
rcauchyMyerson(1, 10, 20, 40)
pcauchyMyerson(0.25, 10, 20, 40)
dcauchyMyerson(15, 10, 20, 40)

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