lexishelper1 {dsModelling}R Documentation

Computes time breaks given the exit time

Description

This is an internal function required by the client. function ds.lexis to get the interval break points for each subject.

Usage

lexishelper1(stopTime, interval)

Arguments

stopTime

a numeric, the exit time time.

interval

a numeric vector of one or more elements which give the sought interval width.

Details

The strategy used in this function consists of walking through the specified interval width and creating interval. Each time an interval is created the exit time is reduced by the same magnitude of time. When the remaining exit time is smaller than the next interval to create to process stops and that last interval is then the interval in which the subject fails. The remaining exit time is in fact the survival time in the last interval where the subject failed.

Value

a list which contains the break points for each subject.

Author(s)

Gaye, A.


[Package dsModelling version 4.1.0 ]