pava_ifr: PAVA order restriction under increasing failure rate (IFR)

Description Usage Arguments Value Examples

View source: R/pava_ifr.R

Description

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

Usage

1
pava_ifr(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 after PAVA deaths2 the corresponding number of deaths after PAVA

Examples

1
2
3
4
5
data(pava_dfrd)
t_d = pava_dfrd[,1]
t = pava_dfrd[,2]
d = pava_dfrd[,3]
pava_ifr(t_d, t, d)

RPEXE.RPEXT documentation built on July 1, 2020, 6:02 p.m.