addNoiseAtEventTimes {ahw} | R Documentation |
Tie removal
Description
Removes ties from by adding noise at tied times
Usage
addNoiseAtEventTimes(fr, id, from, to)
Arguments
fr |
Data on long format |
id |
Name of column in |
from |
Name of the variable that contains the name of start state for each at-risk interval |
to |
Name of column with stop time of the at risk period |
Value
Longitudinally refined data.table
of the input data.table
fr
with random noise added for tiebreaking.
Author(s)
Pål Christie Ryalen <p.c.ryalen@medisin.uio.no>
Examples
library(data.table)
data(fr1)
fr1 <- as.data.table(fr1)
fr1 <- addNoiseAtEventTimes(fr1)
head(fr1)
[Package ahw version 0.1.0 Index]