Learn R Programming

depth.plot (version 0.1)

multi.quant: Multivariate Quantile

Description

Used to compute the p-variate quantile of a p-variate observation with respect to a p-variate data cloud.

Usage

multi.quant(x, data)

Arguments

x
A numeric p-variate spatial rank. Elements must lie within -1 and +1, with a 0-vector denoting the median.
data
A matrix or a data.frame with each row as a p-variate observation.

Value

The xth mutivariate quantile with respect to data.

See Also

spatial.rank

Examples

Run this code
u<-matrix(rnorm(90,0,1),ncol=3)
u0<-runif(3,0,1)
multi.quant(spatial.rank(u0,u),u)

Run the code above in your browser using DataLab