View source: R/basic_methods.R
rc_setup | R Documentation |
This function combines two data frames, the recurring event and terminal event datasets, into one. Each subject has as many rows in the new data frame as the number of recurrent risk periods plus one for the terminal event.
rc_setup(rc_data, trm_data,
rc_idVar = "id", rc_statusVar = "status",
rc_startVar = "start", rc_stopVar = "stop",
trm_idVar = "id", trm_statusVar = "status",
trm_stopVar = "stop",
nameStrata = "strata", nameStatus = "status")
rc_data |
the data frame containing the recurring event data with multiple rows per subject. |
trm_data |
the data frame containing the terminal event data with a single row per subject. |
rc_idVar |
a character string denoting the name of the variable in
|
rc_statusVar |
a character string denoting the name of the variable in
|
rc_startVar |
a character string denoting the name of the variable in
|
rc_stopVar |
a character string denoting the name of the variable in
|
trm_idVar |
a character string denoting the name of the variable in
|
trm_statusVar |
a character string denoting the name of the variable in
|
trm_stopVar |
a character string denoting the name of the variable in
|
nameStrata |
a character string denoting the variable that will be added
in the long version of |
nameStatus |
a character string denoting the variable that will be added
in the long version of |
A data frame in the long format with multiple rows per subject.
Pedro Miranda Afonso p.mirandaafonso@erasmusmc.nl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.