Description Usage Arguments Value Examples
Creates a vector of ranks from the left and right of a cutpoint
1 | eventrank(x, cutpoint = 0)
|
x |
a vector to be ranked |
cutpoint |
a scalar number used as cut-point (zero by default) |
vector of ranks. If an element in x is equal to the cut-point, it is assigned '0'.
1 2 3 4 5 6 7 | ## Not run:
x <- sample(0:10, 10, replace=TRUE)
data.frame(x=x, r=eventrank(x, 5) )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.