createInt: Called by gen_IC_data() to turn the actual outcome times and...

Description Usage Arguments Value Examples

View source: R/gen_IC_data.R

Description

Called by gen_IC_data() to turn the actual outcome times and observation times into interval-censored outcomes for each subject. Apply this with mapply over a data.frame of visit times, pass in the exact times.

Usage

1
createInt(obsTimes, eventTime)

Arguments

obsTimes

A vector of all the times a subject is observed.

eventTime

The exact event time for the subject.

Value

A 2*1 vector which is the interval of the event time

Examples

1
2
3
obsTimes <- 1:10
eventTime <- 7.7
createInt(obsTimes, eventTime)

ICSKAT documentation built on Nov. 25, 2021, 9:07 a.m.