ratx | R Documentation |
This can be used, for example to take survival ratios.
ratx(fx, k = 1)
fx |
numeric. Vector of |
k |
integer. The size of the lag in elements of |
Behavior similar to diff()
, in that returned vector is k
elements
shorter than the given vector fx
.
fx <- 1:10
ratx(fx)
ratx(fx,-1)
ratx(fx,0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.