R Dataset / Package robustbase / delivery
On this R-data statistics page, you will find information about the delivery data set which pertains to Delivery Time Data. The delivery data set is found in the robustbase R package. You can load the delivery data set in R by issuing the following command at the console data("delivery"). This will load the data into a variable called delivery. If R says the delivery data set is not found, you can try installing the package by issuing this command install.packages("robustbase") and then attempt to reload the data with the library() command. 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 delivery R data set. The size of this file is about 313 bytes.
Delivery Time Data
Description
Delivery Time Data, from Montgomery and Peck (1982). The aim is to explain the time required to service a vending machine (Y) by means of the number of products stocked (X1) and the distance walked by the route driver (X2).
Usage
data(delivery)
Format
A data frame with 25 observations on the following 3 variables.
n.prod
-
Number of Products
distance
-
Distance
delTime
-
Delivery time
Source
Montgomery and Peck (1982, p.116)
References
P. J. Rousseeuw and A. M. Leroy (1987) Robust Regression and Outlier Detection; Wiley, page 155, table 23.
Examples
data(delivery) summary(lm.deli <- lm(delTime ~ ., data = delivery))delivery.x <- as.matrix(delivery[, 1:2]) c_deli <- covMcd(delivery.x) c_deli
Dataset imported from https://www.r-project.org.