Learn R Programming

peppm (version 0.0.1)

timeGrid: Time grid for the PE distribution

Description

This function make use of the observed times and failure indicators to create a time grid for the PE distribution.

Usage

timeGrid(time, status, n.int = NULL)

Arguments

time

Vector of failure times

status

Vector of failure indicators

n.int

Optional. Number of intervals. If NULL, the number of intervals is set to be equal to the number of distinct observed failure times.

Value

the time grid needed to specify the PE distribution.

Examples

Run this code
# 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