R Dataset / Package datasets / sleep
Attachment | Size |
---|---|
dataset-97715.csv | 264 bytes |
Documentation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
On this Picostat.com statistics page, you will find information about the sleep data set which pertains to Student's Sleep Data. The sleep data set is found in the datasets R package. Try to load the sleep data set in R by issuing the following command at the console data("sleep"). This may load the data into a variable called sleep. If R says the sleep data set is not found, you can try installing the package by issuing this command install.packages("datasets") and then attempt to reload the data with library("datasets") followed by data("sleep"). 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 sleep 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 sleep R data set. The size of this file is about 264 bytes. Student's Sleep DataDescriptionData which show the effect of two soporific drugs (increase in hours of sleep compared to control) on 10 patients. Usagesleep FormatA data frame with 20 observations on 3 variables.
DetailsThe SourceCushny, A. R. and Peebles, A. R. (1905) The action of optical isomers: II hyoscines. The Journal of Physiology 32, 501–510. Student (1908) The probable error of the mean. Biometrika, 6, 20. ReferencesScheffé, Henry (1959) The Analysis of Variance. New York, NY: Wiley. Examplesrequire(stats) ## Student's paired t-test with(sleep, t.test(extra[group == 1], extra[group == 2], paired = TRUE))## The sleep *prolongations* sleep1 <- with(sleep, extra[group == 2] - extra[group == 1]) summary(sleep1) stripchart(sleep1, method = "stack", xlab = "hours", main = "Sleep prolongation (n = 10)") boxplot(sleep1, horizontal = TRUE, add = TRUE, at = .6, pars = list(boxwex = 0.5, staplewex = 0.25)) -- Dataset imported from https://www.r-project.org. |
Picostat Manual |
---|
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
|
R Output | Date |
---|---|
Picostat Output - Median | Jan 30, 2022 |
Picostat Output - Median | Jan 30, 2022 |
Picostat Output - Correlation Coefficients | Dec 16, 2021 |
Picostat Output - Correlation Coefficients | Dec 16, 2021 |
Picostat Output - Correlation Coefficients | Dec 16, 2021 |
Title | Authored on | Content type |
---|---|---|
R Dataset / Package MASS / Pima.tr2 | March 9, 2018 - 1:06 PM | Dataset |
OpenIntro Statistics Dataset - ipod | August 9, 2020 - 12:25 PM | Dataset |
R Dataset / Package boot / frets | March 9, 2018 - 1:06 PM | Dataset |
R Dataset / Package HSAUR / CYGOB1 | March 9, 2018 - 1:06 PM | Dataset |
OpenIntro Statistics Dataset - COL | August 9, 2020 - 2:30 PM | Dataset |