quantiles {siggenes}R Documentation

Empirical Quantiles

Description

Computes the desired quantiles of a sample and returns them.

Usage

quantiles(x,prob)

Arguments

x vector of data
prob vector of desired probability levels. Values must be between 0 and 1 inclusive.

Details

Consider a sample containing n observations. If α n is a non-integer, then the α quantile will be given by the kth smallest observation x(k), where k is the smallest integer larger than α n. If α n is an integer, then the α quantile will be computed by 0.5(x(k)+x(k+1)).

Value

a vector containing the desired quantiles of the sample

Author(s)

Holger Schwender, holger.schw@gmx.de


[Package siggenes version 1.0.6 Index]