Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

drug

A Trial on the Effect of Time-Varying Doses of a Drug


Description

The data set contains simulated data from an hypothetical randomized controlled trial on the effect of time-varying doses of a drug. The study include records for 200 randomized subjects, each receiving doses of a drug randomly allocated in two out of four weeks, with daily doses varying each week. The daily doses are reported on 7-day intervals corresponding to each week.

Usage

data(drug)

Format

A data frame with 200 observations on the following 7 variables.

  • id: subject ID.

  • out: the outcome level measured at day 28.

  • sex: the sex of the subject.

  • day1.7: daily dose for the first week.

  • day8.14: daily dose for the second week.

  • day15.21: daily dose for the third week.

  • day22.28: daily dose for the fourth week.

Details

The exposure history for each subject (series of daily doses from day 28 to 1) can be recovered by expanding the values given in day1.7-day22.28.

Author(s)

Antonio Gasparrini <antonio.gasparrini@lshtm.ac.uk>

Source

This data set only contains simulated data.

See Also

nested for an example of nested case-control study data. chicagoNMMAPS for an example of time series data.

The application of DLNMs to these data with detailed examples are provided in the vignette dlnmExtended.

See dlnm-package for an introduction to the package and for links to package vignettes providing more detailed information.


dlnm

Distributed Lag Non-Linear Models

v2.4.5
GPL (>= 2)
Authors
Antonio Gasparrini [aut, cre], Ben Armstrong [aut], Fabian Scheipl [ctb]
Initial release
2021-03-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.