current_status_X: Construct Case I Interval Censoring Data (Current Status...

View source: R/iclogcondist_simulation.R

current_status_XR Documentation

Construct Case I Interval Censoring Data (Current Status Data)

Description

This function constructs case I interval-censored data (current status data) using the provided event times and censoring (survey) times. Each individual's event time is either left-censored or right-censored at their survey time, depending on whether the event has occurred by the survey time.

Usage

current_status_X(event_times, survey_times)

Arguments

event_times

A numeric vector of event times for each individual.

survey_times

A numeric vector of 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 survey time, the interval is (0, survey_time]. If the event time is after the survey time, the interval is (survey_time, Inf).


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