Learn R Programming

alR (version 2.2.0)

qsamp: Empirical sample quantile. Calculate empirical sample quantile.

Description

Empirical sample quantile. Calculate empirical sample quantile.

Usage

qsamp(x, q)

Arguments

x

A numeric vector, specifying the sample for which the quantile is to be calculated.

q

A real number between 0 and 1 inclusive, specifying the desired quantile.

Value

The empirical quantile of the provided sample.

Examples

Run this code
# NOT RUN {
x<-rnorm(100)
qsamp(x, 0.5)
# }

Run the code above in your browser using DataLab