R Dataset / Package lme4 / sleepstudy
On this Picostat.com statistics page, you will find information about the sleepstudy data set which pertains to Reaction times in a sleep deprivation study. The sleepstudy data set is found in the lme4 R package. Try to load the sleepstudy data set in R by issuing the following command at the console data("sleepstudy"). This may load the data into a variable called sleepstudy. If R says the sleepstudy data set is not found, you can try installing the package by issuing this command install.packages("lme4") and then attempt to reload the data with library("lme4") followed by data("sleepstudy"). Perhaps strangley, if R gives you no output after entering a command, it means the command succeeded. If it succeeded you can see the data by typing sleepstudy at the command-line which should display the entire dataset.
If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the sleepstudy R data set. The size of this file is about 3,061 bytes.
Reaction times in a sleep deprivation study
The average reaction time per day for subjects in a sleep deprivation study. On day 0 the subjects had their normal amount of sleep. Starting that night they were restricted to 3 hours of sleep per night. The observations represent the average reaction time on a series of tests given each day to each subject.
A data frame with 180 observations on the following 3 variables.
These data are from the study described in Belenky et al. (2003), for the sleep-deprived group and for the first 10 days of the study, up to the recovery period.
Gregory Belenky, Nancy J. Wesensten, David R. Thorne, Maria L. Thomas, Helen C. Sing, Daniel P. Redmond, Michael B. Russo and Thomas J. Balkin (2003) Patterns of performance degradation and restoration during sleep restriction and subsequent recovery: a sleep dose-response study. Journal of Sleep Research 12, 1–12.
str(sleepstudy) require(lattice) xyplot(Reaction ~ Days | Subject, sleepstudy, type = c("g","p","r"), index = function(x,y) coef(lm(y ~ x)), xlab = "Days of sleep deprivation", ylab = "Average reaction time (ms)", aspect = "xy") (fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)) (fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy))
Dataset imported from https://www.r-project.org.
How To Register With a Username
How To Register With Google Single Sign On (SSO)
How To Login With a Username and Password
How To Login With Google Single Sign On (SSO)
How To Import a Dataset
How To Perform Statistical Analysis with Picostat
How To Use Educational Applications with Picostat
|Title||Authored on||Content type|
|R Dataset / Package COUNT / azprocedure||March 9, 2018 - 1:06 PM||Dataset|
|OpenIntro Statistics Dataset - fheights||August 9, 2020 - 12:25 PM||Dataset|
|R Dataset / Package datasets / LakeHuron||March 9, 2018 - 1:06 PM||Dataset|
|R Dataset / Package wooldridge / crime1||March 9, 2018 - 1:06 PM||Dataset|
|R Dataset / Package datasets / faithful||March 9, 2018 - 1:06 PM||Dataset|