Sample quantiles and col/row wise quantiles
Sample quantiles and col/row wise quantiles.
colQuantile(x,probs,parallel=FALSE) rowQuantile(x,probs,parallel=FALSE) Quantile(x,probs)
x |
Numeric vector whose sample quantiles are wanted. NA and NaN values are not allowed in numeric vectors. For the col/row versions a numerical matrix. |
probs |
Numeric vector of probabilities with values in [0,1], not missing values. Values up to 2e-14 outside that range are accepted and moved to the nearby endpoint. |
parallel |
Do you want to do it in parallel in C++? TRUE or FALSE. |
This is the same function as R's built in "quantile" with its default option, type = 7. We have also implemented it in a col/row-wise fashion.
The function will return a vector of the same mode as the arguments given. NAs will be removed.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
x<-rnorm(1000) probs<-runif(10) sum( quantile(x, probs = probs) - Quantile(x, probs) )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.