timeGrid {peppm} | R Documentation |
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)
time |
Vector of failure times |
status |
Vector of failure indicators |
n.int |
Optional. Number of intervals. If |
the time grid needed to specify the PE distribution.
data(telecom)
tgrid1 <- with(telecom, timeGrid(time, status))
tgrid1
tgrid2 <- with(telecom, timeGrid(time, status, n.int = 4))
tgrid2