Data to illustrate the use of WCE.

1 | ```
data("drugdata")
``` |

A data frame with 77038 observations from 500 individuals. The data frame is formatted in an interval format. Contains 7 variables.

`Id`

a numeric vector to identify observations that belong to the same individual (Id).

`Event`

a numeric vector representing the event of interest. Takes the value of 1 in the interval during which the event occurs and is 0 otherwise.

`Start`

a numeric vector indicating the beginning of the interval.

`Stop`

a numeric vector indicating the end of the interval.

`sex`

a numeric vector indicating males (0) and females (1).

`age`

a numeric vector representing age at baseline.

`dose`

a numeric vector representing time-dependent doses of a drug.

The variables `sex`

and `age`

are covariates. They are optional and illustrate the inclusion of adjustment variables. Covariates can be numeric or factors.

This dataset was simulated using the `PermAlgo`

package ( http://cran.r-project.org/web/packages/PermAlgo/index.html).

Sylvestre, MP, & Abrahamowicz, M. (2008). Comparison of algorithms to generate event times conditional on time-dependent covariates. Statistics in Medicine, 27(14), 2618-2634.

1 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.