eventrank: Creates a vector of ranks from the left and right of a...

Description Usage Arguments Value Examples

Description

Creates a vector of ranks from the left and right of a cutpoint

Usage

1
eventrank(x, cutpoint = 0)

Arguments

x

a vector to be ranked

cutpoint

a scalar number used as cut-point (zero by default)

Value

vector of ranks. If an element in x is equal to the cut-point, it is assigned '0'.

Examples

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) 

sumtxt/itstools documentation built on May 30, 2019, 8:38 p.m.