Description Usage Format References Examples

Dataset toydata contains repeated measurements made in 3 patients. It mimics randomized clinical trials data with two parallel arms with a repeated measurement of a time-varying binary covariate, which could be the time-varying confounder acting both on the survival and treatment censoring.

1 | ```
data("toydata")
``` |

A data frame with 3 observations on the following 12 variables.

`id`

a numeric vector corresponding to the patient's identifier

`randt`

a vector containing the date of the randomization visit

`lastdt`

a vector containing the date of latest news

`status`

a numeric vector. The value equals to 1 if the patient dies at lastdt (and 0 otherwise)

`age`

a numeric vector containing patientâ€™s age (in years) at randomization

`ps1`

a numeric vector containing the values (0 or 1) of a repeated measurement happening on date

`randt`

. Note that some of them could be missing`ps2`

a numeric vector containing the values (0 or 1) of a repeated measurement happening on date

`dt2`

. Note that some of them could be missing`ps3`

a numeric vector containing the values (0 or 1) of a repeated measurement happening on date

`dt3`

. Note that some of them could be missing`dt2`

a vector containing the dates of measurement of

`ps2`

. Note that some of them could be missing`dt3`

a vector containing the date of measurement

`ps3`

. Note that some of them could be missing`arm`

a vector containing the patientâ€™s randomized arm

`swtrtdt`

a vector containing the date when the patient initiates the other arm treatment (NA if does not happen)

Graffeo, N., Latouche, A., Le Tourneau C., Chevret, S. "An R Package for IPCW: Application to switches in clinical trials" *(submitted)*

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.