createInt {ICSKAT}R Documentation

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.

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

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

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


[Package ICSKAT version 0.2.0 Index]