electData {elect}R Documentation

Three-state data for exploring elect

Description

Simulated longitudinal data for a three-state illness-death process.

Usage

electData

Format

Data frame with 764 rows, grouped by 150 individuals. Simulated interval-censored transition times for living states 1 and 2, and exact times for death state 3. Variables: id = identification number, state = state, age = age in years on a shifted scale (current age minus 70), x = binary time-independent covariate (can be interpreted as 0/1 for women/men), bsline = baseline record indicator.

Author(s)

Ardo van den Hout

See Also

elect

Examples

# Sample size:
print(length(unique(electData$id)))
# Frequencies number of observation per individual:
print(table(table(electData$id)))
# State table
print(statetable.msm(state, id, data = electData))

[Package elect version 1.2 Index]