explore {elect} | R Documentation |
Data statistics that are important for fitting an age-dependent multi-state model. Basic summaries and additional information on the age distribution in the data
explore(data = NULL, id = NULL, state = NULL, age = NULL,
digits = 3, HIST = TRUE, hist.col = c("green","red",
"blue"), INFO = FALSE)
data |
Data frame with variables |
id |
Identifier. Specify if |
state |
State variable. Specify if |
age |
Age or transformed age. Specify if |
digits |
Number of digits in the output |
HIST |
TRUE for histograms of the age distribution. FALSE otherwise |
hist.col |
Colours for the three histograms of the age distribution |
INFO |
TRUE for returning a list which links |
intervals |
Data frame with variables |
Ardo van den Hout. With thanks to Ying Lou.
explore(electData)