q.sample {asymmetry.measures}R Documentation

Switch between a range of available quantile functions.

Description

Returns the quantiles of selected distributions at user specified locations.

Usage

q.sample(s,dist, p1=0,p2=1)

Arguments

s

A scalar or vector: the probabilities where the quantile function will be evaluated.

dist

Character string, used as a switch to the user selected distribution function (see details below).

p1

A scalar. Parameter 1 (vector or object) of the selected distribution.

p2

A scalar. Parameter 2 (vector or object) of the selected distribution.

Details

Based on user-specified argument dist, the function returns the value of the quantile function at s.

Supported distributions (along with the corresponding dist values) are:

Value

A vector containing the quantile values at the user specified points s.

Author(s)

Dimitrios Bagkavos and Lucia Gamez Gallardo

R implementation and documentation: Dimitrios Bagkavos <dimitrios.bagkavos@gmail.com> , Lucia Gamez Gallardo <gamezgallardolucia@gmail.com>

References

Bagkavos D., Patil P.N., Wood A.T.A. (2016), A Numerical Study of the Power Function of a New Symmetry Test. In: Cao R., Gonzalez Manteiga W., Romo J. (eds) Nonparametric Statistics. Springer Proceedings in Mathematics and Statistics, vol 175, Springer.

See Also

r.sample, d.sample, p.sample

Examples

selected.q <- "norm" #select Normal as the distribution
shape <- 2  # specify shape parameter
scale <- 2 # specify scale parameter
xout <- seq(0.1,1,length=50)  #design point where the quantile function is evaluated
q.sample(xout,selected.q,shape,scale)  # calculate quantiles at xout
  

[Package asymmetry.measures version 0.2 Index]