totaltest: total time on test

Description Usage Arguments Value Examples

View source: R/totaltest.R

Description

Function 'totaltest' computes total-time-on-test.

Usage

1
totaltest(time,censor)

Arguments

time

event/censoring times

censor

censoring status

Value

time_die time points where events occur (in ascending order) ttot total time on test corresponding to each time point in "time_die" deaths number of death corresponding to each time point in "time_die"

Examples

1
2
3
t1 <- c(2,3,4,5.5,7,10,12,15)
c1 <- c(0,0,1,0,0,1,0,0)
totaltest(t1,c1)

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