electData: Three-state data for exploring 'elect'

Description Usage Format Author(s) See Also Examples

Description

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

Usage

1

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

1
2
3
4
5
6
# 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))

elect documentation built on May 2, 2019, 2:09 p.m.

Related to electData in elect...