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("entry","exit"))
dur(x)

Arguments

x an object of class Lexis.
time.scale a string or integer indicating the time scale. If omitted, all times scales are used.
at string indicating the time point(s) at which status is to be measured.

Value

The entry and exit functions return a matrix containing the entry times and exit times, respectively, on the requested time scales. The status function returns a dataframe with the status at entry and/or exit and dur returns a vector with the lengths of the follow-up intervals.

Author(s)

Martyn Plummer

See Also

Lexis


[Package Epi version 1.0.0 Index]