start.Lexis {Epi}R Documentation

Time series methods for Lexis objects

Description

Extract the entry time, exit time, status, or duration of follow-up from a Lexis object.

Usage

entry(x, time.scale = NULL)
exit(x, time.scale = NULL)
status(x, at=c("exit","entry"))
## S3 method for class 'Lexis':
deltat(x, ...)

Arguments

x an object of class Lexis
time.scale a string or integer indicating the time scale. If omitted, the first time scale is used as a default
at string indicating the time point at which status is to be measured
... optional arguments to the deltat method

Value

The entry and exit functions return a vector containing the entry times and exit times, respectively, on the requested time scale. The status function returns the status either at entry or (by default) at exit, and the deltat method returns the length of the follow-up interval.

Author(s)

Martyn Plummer

See Also

Lexis


[Package Epi version 0.9.0 Index]