Description Usage Arguments Value Examples
This returns an integer vector whose i-th element takes 1L if the i-th element
of x
lies between f*100 and (1-f)*100 -th percentiles, i.e.,
an interior point, and 0L otherwise.
1 | TrimmingIndicator(x, f)
|
x |
a numeric vector or matrix. |
f |
a numeric number that indicates the cut-off percentile level. |
an integer vector consisting only of ones and zeros.
If x
is a matrix, interior points are searched on each column, and
the element-wise product of the trimming indicators of the columns are returned.
1 2 3 4 5 | n <- 500L
x <- rnorm(n)
f <- 0.025
trimming <- TrimmingIndicator(x, f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.