addNoiseAtEventTimes: Tie removal

Description Usage Arguments Author(s) Examples

View source: R/addNoiseAtEventTimes.R

Description

Removes ties from by adding noise at tied times

Usage

1
  addNoiseAtEventTimes(frame,idName,startTimeName,stopTimeName)

Arguments

frame

Data on long format

idName

Name of column in dataFr that identifies individuals,

stopTimeName

Name of column with stop time of the at risk period,

startStatusName

Name of the variable that contains the name of start state for each at-risk interval,

Author(s)

Pål Christie Ryalen <p.c.ryalen@medisin.uio.no>

Examples

1
2
3
4
5
data(fr1)
fr1 <- as.data.table(fr1)
fr1 <- addNoiseAtEventTimes(fr1)

head(fr1)

palryalen/ahw documentation built on Sept. 29, 2021, 6:20 p.m.