R Dataset / Package DAAG / elastic2


On this R-data statistics page, you will find information about the elastic2 data set which pertains to Elastic Band Data Replicated Again. The elastic2 data set is found in the DAAG R package. You can load the elastic2 data set in R by issuing the following command at the console data("elastic2"). This will load the data into a variable called elastic2. If R says the elastic2 data set is not found, you can try installing the package by issuing this command install.packages("DAAG") and then attempt to reload the data. 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 elastic2 R data set. The size of this file is about 83 bytes.

Elastic Band Data Replicated Again


The elastic2 data frame has 9 rows and 2 columns giving, for each amount by which an elastic band is stretched over the end of a ruler, the distance that the band traveled when released.




This data frame contains the following columns:


the amount by which the elastic band was stretched


the distance traveled


J. H. Maindonald


pause()print("Chapter 5 Exercise")yrange <- range(c(elastic1$distance, elastic2$distance))
xrange <- range(c(elastic1$stretch, elastic2$stretch))
plot(distance ~ stretch, data = elastic1, pch = 16, ylim = yrange, xlim = 
points(distance ~ stretch, data = elastic2, pch = 15, col = 2)
legend(xrange[1], yrange[2], legend = c("Data set 1", "Data set 2"), pch = 
c(16, 15), col = c(1, 2))elastic1.lm <- lm(distance ~ stretch, data = elastic1)
elastic2.lm <- lm(distance ~ stretch, data = elastic2)
abline(elastic2.lm, col = 2)
pause()predict(elastic1.lm, se.fit=TRUE)
predict(elastic2.lm, se.fit=TRUE)

Dataset imported from https://www.r-project.org.

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-daag-elastic2.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-58337.csv 83 bytes
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.