medication | R Documentation |
Often used for didactic purposes (Singer & Willett, 2003), and originally discussed in Tomarken, Shelton, Elkins, and Anderson (1997). During seven days, three times a day (from time = 0 to time = 6.667), a sample of n = 64 adults (identified by the variable id) were randomly assigned to either a treatment group (treat=1) or a control group (treat=0) and were required to report their mood (pos).
data(medication)
'medication' a data.frame with 5 columns and 1242 rows:
row number
participant number
treatment assignment, 1= treatment; 0= control
time from 0 to 6.667, with increments of 0.333
the positive mood score
Tomarken, A. J., Shelton, R. C., Elkins, L., & Anderson, T. (1997). Sleep deprivation and anti-depressant medication: unique effects on positive and negative affect. In American Psychological Society Meeting, Washington, DC.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.