View source: R/iclogcondist_simulation.R
case_II_X | R Documentation |
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.
case_II_X(event_times, survey_times)
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. |
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]
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.