R Dataset / Package robustbase / carrots


On this R-data statistics page, you will find information about the carrots data set which pertains to Insect Damages on Carrots. The carrots data set is found in the robustbase R package. You can load the carrots data set in R by issuing the following command at the console data("carrots"). This will load the data into a variable called carrots. If R says the carrots 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. 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 carrots R data set. The size of this file is about 394 bytes.

Insect Damages on Carrots


The damage carrots data set from Phelps (1982) was used by McCullagh and Nelder (1989) in order to illustrate diagnostic techniques because of the presence of an outlier. In a soil experiment trial with three blocks, eight levels of insecticide were applied and the carrots were tested for insect damage.




A data frame with 24 observations on the following 4 variables.


integer giving the number of carrots with insect damage.


integer giving the total number of carrots per experimental unit.


a numeric vector giving log(dose) values (eight different levels only).


factor with levels B1 to B3


Phelps, K. (1982). Use of the complementary log-log function to describe doseresponse relationships in insecticide evaluation field trials.
In R. Gilchrist (Ed.), Lecture Notes in Statistics, No. 14. GLIM.82: Proceedings of the International Conference on Generalized Linear Models; Springer-Verlag.


McCullagh P. and Nelder, J. A. (1989) Generalized Linear Models. London: Chapman and Hall.

Eva Cantoni and Elvezio Ronchetti (2001); JASA, and
Eva Cantoni (2004); JSS, see glmrob


plot(success/total ~ logdose, data = carrots, col = as.integer(block))
coplot(success/total ~ logdose | block, data = carrots)## Classical glm
Cfit0 <- glm(cbind(success, total-success) ~ logdose + block,
             data=carrots, family=binomial)
summary(Cfit0)## Robust Fit (see help(glmrob)) ....

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-robustbase-carrots.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-24368.csv 394 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.