case_II_X: Construct Case II Interval Censoring Data

View source: R/iclogcondist_simulation.R

case_II_XR Documentation

Construct Case II Interval Censoring Data

Description

This function constructs case II interval-censored data using the provided event times and censoring (survey) times. Each individual's event time is either left-censored, right-censored, or interval-censored based on two survey times: the left and right bounds of the interval.

Usage

case_II_X(event_times, survey_times)

Arguments

event_times

A numeric vector of event times for each individual.

survey_times

A numeric matrix with two columns, where each row contains the left and right censoring (survey) times for each individual.

Value

A matrix with two columns, where each row represents an individual's interval-censored data. The first column is the left endpoint, and the second column is the right endpoint. If the event time is before the left survey time, the interval is (0, left survey time]. If the event time is after the right survey time, the interval is (right survey time, Inf). If the event time falls between the left and right survey times, the interval is (left survey time, right survey time].


iclogcondist documentation built on April 4, 2025, 5:18 a.m.