powered by
This function make use of the observed times and failure indicators to create a time grid for the PE distribution.
timeGrid(time, status, n.int = NULL)
Vector of failure times
Vector of failure indicators
Optional. Number of intervals. If NULL, the number of intervals is set to be equal to the number of distinct observed failure times.
NULL
the time grid needed to specify the PE distribution.
# NOT RUN { data(telecom) tgrid1 <- with(telecom, timeGrid(time, status)) tgrid1 tgrid2 <- with(telecom, timeGrid(time, status, n.int = 4)) tgrid2 # }
Run the code above in your browser using DataLab