qOP: Odd Parteo G distribution

View source: R/qOP.R

qOPR Documentation

Odd Parteo G distribution

Description

Quantile function of OPAG distribution for any base distribution

Usage

qMPo(p,par,distr,lower=0,upper,lower.tail=TRUE,log.p=FALSE)

Arguments

p

scalar or vector of probabilities.

par

named vector or list of the distribution parameters.

distr

character string specifying the base distribution (for example, "exp" for exponential base distribution).

lower

the lower end point of the interval to be searched.

upper

the upper end point of the interval to be searched.

lower.tail

logical; if TRUE, probability are P(X <= x), otherwise, P(X > x).

log.p

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

Value

An object of the same length as p, giving the quantile function values computed at p

Author(s)

Mohamed Hussein

Examples

qOP(p=0.5,c(rate=0.2,a=2,c=0.5),"exp",upper=100)
  qOP(0.25,c(rate=0.2,a=2,c=1.5),"exp",upper=100)
  qOP(0.75,c(a=2,c=2),"norm",upper=100)
  qOP(log(0.5),c(a=5,c=1,rate=0.5),"exp",lower=0,upper=100,log.p=TRUE)
  qOP(0.10,c(a=1.5,c=3,rate=0.5),"exp",lower=0,upper=100,lower.tail=FALSE)
  qOP(p=0.5,c(rate=0.2,a=2,c=2),"exp",upper=100)

MHussein-S/OPAG documentation built on June 2, 2022, 12:29 p.m.