View source: R/iclogcondist_simulation.R
current_status_X | R Documentation |
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.
current_status_X(event_times, survey_times)
event_times |
A numeric vector of event times for each individual. |
survey_times |
A numeric vector of 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 survey time, the interval is (0, survey_time]
.
If the event time is after the survey time, the interval is (survey_time, Inf)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.