R Dataset / Package Stat2Data / PigFeed

On this R-data statistics page, you will find information about the PigFeed data set which pertains to PigFeed. The PigFeed data set is found in the Stat2Data R package. You can load the PigFeed data set in R by issuing the following command at the console data("PigFeed"). This will load the data into a variable called PigFeed. If R says the PigFeed data set is not found, you can try installing the package by issuing this command install.packages("Stat2Data") 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 PigFeed R data set. The size of this file is about 193 bytes.

PigFeed

Description

Effects of additives to pig feed on weight gain

Format

A dataset with 12 observations on the following 3 variables.

R project statistics dataset table
WgtGain Daily wight gain (hundredths of a pound over 1.00)
Antibiotic Antibiotic in the feed? No or Yes
B12 Vitamin B12 in the feed? No or Yes

Details

A scientist in Iowa was interested in additives to standard pig chow that might increase the rate at which the pigs gained weight. Two factors of interest were vitamin B12 and antibiotics. To perform the experiment, the scientist randomly assigned 12 pigs, three to each of the diet combinations (Antibiotic only, B12 only, both, and neither).

Source

Data are found in Statistical Methods by George W. Snedecor and William G. Cochran (1967). Ames, IA: The Iowa State University Press.

References

Original source is Iowa Agricultural Experiment Station (1952). Animal Husbandry Swine Nutrition Experiment No. 577.

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

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-stat2data-pigfeed.html" width="100%" height="100%" style="border:0px"></iframe>