| electData | R Documentation |
elect
Simulated longitudinal data for a three-state illness-death process.
electData
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.
Ardo van den Hout
elect
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.