Learn R Programming

RPEXE.RPEXT (version 0.0.2)

pava_dfr: PAVA order restriction under decreasing failure rate (DFR)

Description

This function imposes the PAVA DFR order restriction by eliminating change-points violating the restriction

Usage

pava_dfr(time_die,ttot,deaths)

Arguments

time_die

event times

ttot

the total time on test (ttot) corresponding to the event times

deaths

the number of deaths at each event time

Value

time2: the event times after PAVA ttot2: the corresponding ttot deaths2 the corresponding number of deaths

Examples

Run this code
# NOT RUN {
data(pava_dfrd)
t_d = pava_dfrd[,1]
t = pava_dfrd[,2]
d = pava_dfrd[,3]
pava_dfr(t_d, t, d)
# }

Run the code above in your browser using DataLab