powered by
Check that exit occurs after enter, that spells from an individual do not overlap, and that each individual experiences at most one event.
check.surv(enter, exit, event, id = NULL, eps = 1e-08)
Left truncation time.
Time of exit.
Indicator of event. Zero means 'no event'.
Identification of individuals.
The smallest allowed spell length or overlap.
A vector of id's for the insane individuals. Of zero length if no errors.
Interval lengths must be strictly positive.
join.spells, coxreg, aftreg
join.spells
coxreg
aftreg
# NOT RUN { xx <- data.frame(enter = c(0, 1), exit = c(1.5, 3), event = c(0, 1), id = c(1,1)) check.surv(xx$enter, xx$exit, xx$event, xx$id) # }
Run the code above in your browser using DataLab