compareQuantile {cTRAP} | R Documentation

## Compare vector against its quantile

### Description

Check which elements of the vector are lower/greater than or equal to the quantile of a given vector.

### Usage

    compareQuantile(vec, prob, lte = FALSE)

### Arguments

`vec` | Numeric vector
`prob` | Numeric: probability value between [0,1] to produce sample quantiles
`lte` | Boolean: check if values are <= quantile? If `FALSE`, checks if values are >= quantile

### Value

Boolean vector regarding compared elements

[Package cTRAP version 1.5.0 Index]