Learn R Programming

gte (version 1.2-3)

simul: Simulated Data

Description

Simulated Interval-censored data

Arguments

Format

A data frame with 100 observations on the following 3 variables.

L

the left endpoints of the censoring interval

R

the right endpoints of the censoring interval

Z

a continuous covariate

Details

The value R = NA means that the observation is right censored (occurs 2 times). If L = NA, then the observation is left censored (occurs 26 times). An observation with R = L means that the time of occurence of the event is known exactly (occurs 3 times).

References

Dehghan, M. H. and Duchesne, T. (2011). A generalization of Turnbull's estimator for nonparametric estimation of the conditional survival function with interval-censored data. Lifetime Data Analysis, 17, 234-255.

Examples

Run this code
# NOT RUN {
Fit <- gte(Surv(L, R, type="interval2") ~ Z, data=simul, z=15)
plot(Fit)
# }

Run the code above in your browser using DataLab