The data arise from an experiment to study the
gain in weight of rats fed on four different diets, distinguished
by amount of protein (low and high) and by source of protein
(beef and cereal).
Usage
data("weightgain")
Format
A data frame with 40 observations on the following 3 variables.
source
source of protein given, a factor with levels Beef
and Cereal.
type
amount of protein given, a factor with levels High
and Low.
weightgain
weigt gain in grams.
Details
Ten rats are randomized to each of the four
treatments. The question
of interest is how diet affects weight gain.
Source
D. J. Hand, F. Daly, A. D. Lunn, K. J. McConway and E. Ostrowski (1994).
A Handbook of Small Datasets, Chapman and Hall/CRC, London.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(HSAUR)
Loading required package: tools
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HSAUR/weightgain.Rd_%03d_medium.png", width=480, height=480)
> ### Name: weightgain
> ### Title: Gain in Weight of Rats
> ### Aliases: weightgain
> ### Keywords: datasets
>
> ### ** Examples
>
>
> data("weightgain", package = "HSAUR")
> interaction.plot(weightgain$type, weightgain$source,
+ weightgain$weightgain)
>
>
>
>
>
>
> dev.off()
null device
1
>