Learn R Programming

ICSKAT (version 0.3.0)

createInt: 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)

Value

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

Arguments

obsTimes

A vector of all the times a subject is observed.

eventTime

The exact event time for the subject.

Examples

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

Run the code above in your browser using DataLab