timeGrid: Time grid for the PE distribution

Description Usage Arguments Value Examples

View source: R/pexp.R

Description

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

Usage

1
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

1
2
3
4
5
data(telecom)
tgrid1 <- with(telecom, timeGrid(time, status))
tgrid1
tgrid2 <- with(telecom, timeGrid(time, status, n.int = 4))
tgrid2

peppm documentation built on July 1, 2020, 8:56 p.m.