On this R-data statistics page, you will find information about the allbacks data set which pertains to Measurements on a Selection of Books. The allbacks data set is found in the DAAG R package. You can load the allbacks data set in R by issuing the following command at the console data("allbacks"). This will load the data into a variable called allbacks. If R says the allbacks 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 allbacks R data set. The size of this file is about 280 bytes.
Measurements on a Selection of Books
allbacks data frame gives measurements on the volume and weight of 15 books, some of which are softback (pb) and some of which are hardback (hb). Area of the hardback covers is also included.
This data frame contains the following columns:
book volumes in cubic centimeters
hard board cover areas in square centimeters
book weights in grams
a factor with levels
The bookshelf of J. H. Maindonald.
print("Multiple Regression - Example 6.1")
volume.split <- split(volume, cover)
weight.split <- split(weight, cover)
plot(weight.split$hb ~ volume.split$hb, pch=16, xlim=range(volume), ylim=range(weight),
ylab="Weight (g)", xlab="Volume (cc)")
points(weight.split$pb ~ volume.split$pb, pch=16, col=2)
pause()allbacks.lm <- lm(weight ~ volume+area)
allbacks.lm0 <- lm(weight ~ -1+volume+area, data=allbacks)
oldpar <- par(mfrow=c(2,2))
allbacks.lm13 <- lm(weight ~ -1+volume+area, data=allbacks[-13,])
round(coef(allbacks.lm0),2) # Baseline for changes
Dataset imported from https://www.r-project.org.