sciruby 0.1.0 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. data/.autotest +23 -0
  2. data/.gemtest +0 -0
  3. data/History.txt +6 -0
  4. data/Manifest.txt +119 -0
  5. data/Rakefile +178 -0
  6. data/bin/sciruby-plotter +12 -0
  7. data/data/r/man/AirPassengers.Rd +51 -0
  8. data/data/r/man/BJsales.Rd +34 -0
  9. data/data/r/man/BOD.Rd +53 -0
  10. data/data/r/man/ChickWeight.Rd +68 -0
  11. data/data/r/man/DNase.Rd +63 -0
  12. data/data/r/man/EuStockMarkets.Rd +28 -0
  13. data/data/r/man/Formaldehyde.Rd +44 -0
  14. data/data/r/man/HairEyeColor.Rd +77 -0
  15. data/data/r/man/Harman23.cor.Rd +25 -0
  16. data/data/r/man/Harman74.cor.Rd +28 -0
  17. data/data/r/man/Indometh.Rd +57 -0
  18. data/data/r/man/InsectSprays.Rd +45 -0
  19. data/data/r/man/JohnsonJohnson.Rd +37 -0
  20. data/data/r/man/LakeHuron.Rd +27 -0
  21. data/data/r/man/LifeCycleSavings.Rd +54 -0
  22. data/data/r/man/Loblolly.Rd +56 -0
  23. data/data/r/man/Nile.Rd +78 -0
  24. data/data/r/man/Orange.Rd +57 -0
  25. data/data/r/man/OrchardSprays.Rd +62 -0
  26. data/data/r/man/PlantGrowth.Rd +39 -0
  27. data/data/r/man/Puromycin.Rd +84 -0
  28. data/data/r/man/Theoph.Rd +84 -0
  29. data/data/r/man/Titanic.Rd +73 -0
  30. data/data/r/man/ToothGrowth.Rd +40 -0
  31. data/data/r/man/UCBAdmissions.Rd +68 -0
  32. data/data/r/man/UKDriverDeaths.Rd +72 -0
  33. data/data/r/man/UKLungDeaths.Rd +40 -0
  34. data/data/r/man/UKgas.Rd +25 -0
  35. data/data/r/man/USAccDeaths.Rd +23 -0
  36. data/data/r/man/USArrests.Rd +45 -0
  37. data/data/r/man/USJudgeRatings.Rd +38 -0
  38. data/data/r/man/USPersonalExpenditure.Rd +33 -0
  39. data/data/r/man/VADeaths.Rd +51 -0
  40. data/data/r/man/WWWusage.Rd +41 -0
  41. data/data/r/man/WorldPhones.Rd +40 -0
  42. data/data/r/man/ability.cov.Rd +50 -0
  43. data/data/r/man/airmiles.Rd +29 -0
  44. data/data/r/man/airquality.Rd +56 -0
  45. data/data/r/man/anscombe.Rd +62 -0
  46. data/data/r/man/attenu.Rd +66 -0
  47. data/data/r/man/attitude.Rd +48 -0
  48. data/data/r/man/austres.Rd +22 -0
  49. data/data/r/man/beavers.Rd +73 -0
  50. data/data/r/man/cars.Rd +59 -0
  51. data/data/r/man/chickwts.Rd +47 -0
  52. data/data/r/man/co2.Rd +43 -0
  53. data/data/r/man/crimtab.Rd +129 -0
  54. data/data/r/man/datasets-package.Rd +24 -0
  55. data/data/r/man/discoveries.Rd +30 -0
  56. data/data/r/man/esoph.Rd +66 -0
  57. data/data/r/man/euro.Rd +56 -0
  58. data/data/r/man/eurodist.Rd +25 -0
  59. data/data/r/man/faithful.Rd +63 -0
  60. data/data/r/man/freeny.Rd +56 -0
  61. data/data/r/man/infert.Rd +56 -0
  62. data/data/r/man/iris.Rd +62 -0
  63. data/data/r/man/islands.Rd +29 -0
  64. data/data/r/man/lh.Rd +22 -0
  65. data/data/r/man/longley.Rd +56 -0
  66. data/data/r/man/lynx.Rd +33 -0
  67. data/data/r/man/morley.Rd +50 -0
  68. data/data/r/man/mtcars.Rd +44 -0
  69. data/data/r/man/nhtemp.Rd +30 -0
  70. data/data/r/man/nottem.Rd +30 -0
  71. data/data/r/man/occupationalStatus.Rd +44 -0
  72. data/data/r/man/precip.Rd +31 -0
  73. data/data/r/man/presidents.Rd +36 -0
  74. data/data/r/man/pressure.Rd +41 -0
  75. data/data/r/man/quakes.Rd +40 -0
  76. data/data/r/man/randu.Rd +46 -0
  77. data/data/r/man/rivers.Rd +21 -0
  78. data/data/r/man/rock.Rd +34 -0
  79. data/data/r/man/sleep.Rd +51 -0
  80. data/data/r/man/stackloss.Rd +77 -0
  81. data/data/r/man/state.Rd +80 -0
  82. data/data/r/man/sunspot.month.Rd +49 -0
  83. data/data/r/man/sunspot.year.Rd +26 -0
  84. data/data/r/man/sunspots.Rd +33 -0
  85. data/data/r/man/swiss.Rd +79 -0
  86. data/data/r/man/treering.Rd +38 -0
  87. data/data/r/man/trees.Rd +48 -0
  88. data/data/r/man/uspop.Rd +27 -0
  89. data/data/r/man/volcano.Rd +31 -0
  90. data/data/r/man/warpbreaks.Rd +56 -0
  91. data/data/r/man/women.Rd +40 -0
  92. data/data/r/man/zCO2.Rd +81 -0
  93. data/lib/ext/csv.rb +22 -0
  94. data/lib/ext/shoes.rb +131 -0
  95. data/lib/ext/string.rb +39 -0
  96. data/lib/sciruby.rb +50 -4
  97. data/lib/sciruby/analysis.rb +98 -0
  98. data/lib/sciruby/analysis/suite.rb +87 -0
  99. data/lib/sciruby/analysis/suite_report_builder.rb +44 -0
  100. data/lib/sciruby/config.rb +93 -0
  101. data/lib/sciruby/data.rb +168 -0
  102. data/lib/sciruby/data/guardian.rb +96 -0
  103. data/lib/sciruby/data/r.rb +155 -0
  104. data/lib/sciruby/data/r/base.rb +110 -0
  105. data/lib/sciruby/data/r/data_frame.rb +24 -0
  106. data/lib/sciruby/data/r/grouped_data.rb +7 -0
  107. data/lib/sciruby/data/r/list.rb +20 -0
  108. data/lib/sciruby/data/r/multi_time_series.rb +24 -0
  109. data/lib/sciruby/data/r/r_matrix.rb +7 -0
  110. data/lib/sciruby/data/r/time_series.rb +19 -0
  111. data/lib/sciruby/data/r/time_series_base.rb +40 -0
  112. data/lib/sciruby/data/r/vector.rb +125 -0
  113. data/lib/sciruby/editor.rb +82 -0
  114. data/lib/sciruby/plotter.rb +128 -0
  115. data/lib/sciruby/recommend.rb +4 -0
  116. data/lib/sciruby/validation.rb +368 -0
  117. data/readme.md +75 -0
  118. data/static/sciruby-icon.png +0 -0
  119. data/test/helpers_tests.rb +58 -0
  120. data/test/test_recommend.rb +16 -0
  121. metadata +396 -20
@@ -0,0 +1,68 @@
1
+ % File src/library/datasets/man/ChickWeight.Rd
2
+ % Part of the R package, http://www.R-project.org
3
+ % Copyright 1995-2011 R Core Development Team
4
+ % Distributed under GPL 2 or later
5
+
6
+ \name{ChickWeight}
7
+ \docType{data}
8
+ \alias{ChickWeight}
9
+ \title{Weight versus age of chicks on different diets}
10
+ \description{
11
+ The \code{ChickWeight} data frame has 578 rows and 4 columns from an
12
+ experiment on the effect of diet on early growth of chicks.
13
+ }
14
+ \usage{ChickWeight}
15
+ \format{
16
+ This object of class \code{c("nfnGroupedData", "nfGroupedData",
17
+ "groupedData", "data.frame")} containing the following columns:
18
+ \describe{
19
+ \item{weight}{
20
+ a numeric vector giving the body weight of the chick (gm).
21
+ }
22
+ \item{Time}{
23
+ a numeric vector giving the number of days since birth when
24
+ the measurement was made.
25
+ }
26
+ \item{Chick}{
27
+ an ordered factor with levels
28
+ \code{18} < \dots < \code{48}
29
+ giving a unique identifier for the chick. The ordering of
30
+ the levels groups chicks on the same diet together and
31
+ orders them according to their final weight (lightest to
32
+ heaviest) within diet.
33
+ }
34
+ \item{Diet}{
35
+ a factor with levels 1,\dots,4 indicating which
36
+ experimental diet the chick received.
37
+ }
38
+ }
39
+ }
40
+ \details{
41
+ The body weights of the chicks were measured at birth and every
42
+ second day thereafter until day 20. They were also measured on day
43
+ 21. There were four groups on chicks on different protein diets.
44
+
45
+ This dataset was originally part of package \code{nlme}, and that has
46
+ methods (including for \code{[}, \code{as.data.frame}, \code{plot} and
47
+ \code{print}) for its grouped-data classes.
48
+ }
49
+ \source{
50
+ Crowder, M. and Hand, D. (1990), \emph{Analysis of Repeated Measures},
51
+ Chapman and Hall (example 5.3)
52
+
53
+ Hand, D. and Crowder, M. (1996), \emph{Practical Longitudinal Data
54
+ Analysis}, Chapman and Hall (table A.2)
55
+
56
+ Pinheiro, J. C. and Bates, D. M. (2000) \emph{Mixed-effects Models in
57
+ S and S-PLUS}, Springer.
58
+ }
59
+ \seealso{
60
+ \code{\link{SSlogis}} for models fitted to this dataset.
61
+ }
62
+
63
+ \examples{\donttest{
64
+ require(graphics)
65
+ coplot(weight ~ Time | Chick, data = ChickWeight,
66
+ type = "b", show.given = FALSE)
67
+ }}
68
+ \keyword{datasets}
@@ -0,0 +1,63 @@
1
+ % File src/library/datasets/man/DNase.Rd
2
+ % Part of the R package, http://www.R-project.org
3
+ % Copyright 1995-2011 R Core Development Team
4
+ % Distributed under GPL 2 or later
5
+
6
+ \name{DNase}
7
+ \docType{data}
8
+ \alias{DNase}
9
+ \title{Elisa assay of DNase}
10
+ \description{
11
+ The \code{DNase} data frame has 176 rows and 3 columns of data
12
+ obtained during development of an ELISA assay for the recombinant
13
+ protein DNase in rat serum.
14
+ }
15
+ \usage{DNase}
16
+ \format{
17
+ This object of class \code{c("nfnGroupedData", "nfGroupedData",
18
+ "groupedData", "data.frame")} containing the following columns:
19
+ \describe{
20
+ \item{Run}{
21
+ an ordered factor with levels \code{10} < \dots < \code{3}
22
+ indicating the assay run.
23
+ }
24
+ \item{conc}{
25
+ a numeric vector giving the known concentration of the
26
+ protein.
27
+ }
28
+ \item{density}{
29
+ a numeric vector giving the measured optical density
30
+ (dimensionless) in the assay. Duplicate optical density
31
+ measurements were obtained.
32
+ }
33
+ }
34
+ }
35
+ \details{
36
+ This dataset was originally part of package \code{nlme}, and that has
37
+ methods (including for \code{[}, \code{as.data.frame}, \code{plot} and
38
+ \code{print}) for its grouped-data classes.
39
+ }
40
+ \source{
41
+ Davidian, M. and Giltinan, D. M. (1995) \emph{Nonlinear Models for
42
+ Repeated Measurement Data}, Chapman & Hall (section 5.2.4, p. 134)
43
+
44
+ Pinheiro, J. C. and Bates, D. M. (2000) \emph{Mixed-effects Models in
45
+ S and S-PLUS}, Springer.
46
+ }
47
+ \examples{
48
+ require(stats); require(graphics)
49
+ \testonly{options(show.nls.convergence=FALSE)}
50
+ coplot(density ~ conc | Run, data = DNase,
51
+ show.given = FALSE, type = "b")
52
+ coplot(density ~ log(conc) | Run, data = DNase,
53
+ show.given = FALSE, type = "b")
54
+ ## fit a representative run
55
+ fm1 <- nls(density ~ SSlogis( log(conc), Asym, xmid, scal ),
56
+ data = DNase, subset = Run == 1)
57
+ ## compare with a four-parameter logistic
58
+ fm2 <- nls(density ~ SSfpl( log(conc), A, B, xmid, scal ),
59
+ data = DNase, subset = Run == 1)
60
+ summary(fm2)
61
+ anova(fm1, fm2)
62
+ }
63
+ \keyword{datasets}
@@ -0,0 +1,28 @@
1
+ % File src/library/datasets/man/EuStockMarkets.Rd
2
+ % Part of the R package, http://www.R-project.org
3
+ % Copyright 1995-2007 R Core Development Team
4
+ % Distributed under GPL 2 or later
5
+
6
+ \name{EuStockMarkets}
7
+ \docType{data}
8
+ \alias{EuStockMarkets}
9
+ \title{
10
+ Daily Closing Prices of Major European Stock Indices, 1991--1998
11
+ }
12
+ \description{
13
+ Contains the daily closing prices of major European stock indices:
14
+ Germany DAX (Ibis), Switzerland SMI, France CAC, and UK FTSE. The
15
+ data are sampled in business time, i.e., weekends and holidays are
16
+ omitted.
17
+ }
18
+ \usage{
19
+ EuStockMarkets
20
+ }
21
+ \format{
22
+ A multivariate time series with 1860 observations on 4 variables.
23
+ The object is of class \code{"mts"}.
24
+ }
25
+ \source{
26
+ The data were kindly provided by Erste Bank AG, Vienna, Austria.
27
+ }
28
+ \keyword{datasets}
@@ -0,0 +1,44 @@
1
+ % File src/library/datasets/man/Formaldehyde.Rd
2
+ % Part of the R package, http://www.R-project.org
3
+ % Copyright 1995-2009 R Core Development Team
4
+ % Distributed under GPL 2 or later
5
+
6
+ \name{Formaldehyde}
7
+ \docType{data}
8
+ \alias{Formaldehyde}
9
+ \title{Determination of Formaldehyde}
10
+ \description{
11
+ These data are from a chemical experiment to prepare a standard curve
12
+ for the determination of formaldehyde by the addition of chromatropic
13
+ acid and concentrated sulphuric acid and the reading of the resulting
14
+ purple color on a spectrophotometer.
15
+ }
16
+ \usage{Formaldehyde}
17
+ \format{
18
+ A data frame with 6 observations on 2 variables.
19
+ \tabular{rlll}{
20
+ [,1] \tab carb\tab numeric \tab Carbohydrate (ml) \cr
21
+ [,2] \tab optden \tab numeric \tab Optical Density
22
+ }
23
+ }
24
+ \source{
25
+ Bennett, N. A. and N. L. Franklin (1954)
26
+ \emph{Statistical Analysis in Chemistry and the Chemical Industry}.
27
+ New York: Wiley.
28
+ }
29
+ \references{
30
+ McNeil, D. R. (1977) \emph{Interactive Data Analysis.}
31
+ New York: Wiley.
32
+ }
33
+ \examples{
34
+ require(stats); require(graphics)
35
+ plot(optden ~ carb, data = Formaldehyde,
36
+ xlab = "Carbohydrate (ml)", ylab = "Optical Density",
37
+ main = "Formaldehyde data", col = 4, las = 1)
38
+ abline(fm1 <- lm(optden ~ carb, data = Formaldehyde))
39
+ summary(fm1)
40
+ opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
41
+ plot(fm1)
42
+ par(opar)
43
+ }
44
+ \keyword{datasets}
@@ -0,0 +1,77 @@
1
+ % File src/library/datasets/man/HairEyeColor.Rd
2
+ % Part of the R package, http://www.R-project.org
3
+ % Copyright 1995-2007 R Core Development Team
4
+ % Distributed under GPL 2 or later
5
+
6
+ \name{HairEyeColor}
7
+ \docType{data}
8
+ \alias{HairEyeColor}
9
+ \title{Hair and Eye Color of Statistics Students}
10
+ \description{
11
+ Distribution of hair and eye color and sex in 592 statistics students.
12
+ }
13
+ \usage{HairEyeColor}
14
+ \format{
15
+ A 3-dimensional array resulting from cross-tabulating 592 observations
16
+ on 3 variables. The variables and their levels are as follows:
17
+
18
+ \tabular{rll}{
19
+ No \tab Name \tab Levels \cr
20
+ 1 \tab Hair \tab Black, Brown, Red, Blond \cr
21
+ 2 \tab Eye \tab Brown, Blue, Hazel, Green \cr
22
+ 3 \tab Sex \tab Male, Female
23
+ }
24
+ }
25
+ \details{
26
+ The Hair \eqn{\times}{x} Eye table comes rom a survey of students at
27
+ the University of Delaware reported by Snee (1974). The split by
28
+ \code{Sex} was added by Friendly (1992a) for didactic purposes.
29
+
30
+ This data set is useful for illustrating various techniques for the
31
+ analysis of contingency tables, such as the standard chi-squared test
32
+ or, more generally, log-linear modelling, and graphical methods such
33
+ as mosaic plots, sieve diagrams or association plots.
34
+ }
35
+ \source{
36
+ \url{http://euclid.psych.yorku.ca/ftp/sas/vcd/catdata/haireye.sas}
37
+
38
+ Snee (1974) gives the two-way table aggregated over \code{Sex}. The
39
+ Sex split of the \sQuote{Brown hair, Brown eye} cell was changed in
40
+ \R 2.6.0 to agree with that used by Friendly (2000).
41
+ }
42
+ \references{
43
+ Snee, R. D. (1974)
44
+ Graphical display of two-way contingency tables.
45
+ \emph{The American Statistician}, \bold{28}, 9--12.
46
+
47
+ Friendly, M. (1992a)
48
+ Graphical methods for categorical data.
49
+ \emph{SAS User Group International Conference Proceedings}, \bold{17},
50
+ 190--200.
51
+ \url{http://www.math.yorku.ca/SCS/sugi/sugi17-paper.html}
52
+
53
+ Friendly, M. (1992b)
54
+ Mosaic displays for loglinear models.
55
+ \emph{Proceedings of the Statistical Graphics Section},
56
+ American Statistical Association, pp. 61--68.
57
+ \url{http://www.math.yorku.ca/SCS/Papers/asa92.html}
58
+
59
+ Friendly, M. (2000)
60
+ \emph{Visualizing Categorical Data.}
61
+ SAS Institute, ISBN 1-58025-660-0.
62
+ }
63
+ \seealso{
64
+ \code{\link{chisq.test}},
65
+ \code{\link{loglin}},
66
+ \code{\link{mosaicplot}}
67
+ }
68
+ \examples{
69
+ require(graphics)
70
+ ## Full mosaic
71
+ mosaicplot(HairEyeColor)
72
+ ## Aggregate over sex (as in Snee's original data)
73
+ x <- apply(HairEyeColor, c(1, 2), sum)
74
+ x
75
+ mosaicplot(x, main = "Relation between hair and eye color")
76
+ }
77
+ \keyword{datasets}
@@ -0,0 +1,25 @@
1
+ % File src/library/datasets/man/Harman23.cor.Rd
2
+ % Part of the R package, http://www.R-project.org
3
+ % Copyright 1995-2007 R Core Development Team
4
+ % Distributed under GPL 2 or later
5
+
6
+ \name{Harman23.cor}
7
+ \docType{data}
8
+ \alias{Harman23.cor}
9
+ \title{Harman Example 2.3}
10
+ \description{
11
+ A correlation matrix of eight physical measurements on 305 girls between
12
+ ages seven and seventeen.
13
+ }
14
+ \usage{Harman23.cor}
15
+ \source{
16
+ Harman, H. H. (1976)
17
+ \emph{Modern Factor Analysis}, Third Edition Revised,
18
+ University of Chicago Press, Table 2.3.
19
+ }
20
+ \examples{
21
+ require(stats)
22
+ (Harman23.FA <- factanal(factors = 1, covmat = Harman23.cor))
23
+ for(factors in 2:4) print(update(Harman23.FA, factors = factors))
24
+ }
25
+ \keyword{datasets}
@@ -0,0 +1,28 @@
1
+ % File src/library/datasets/man/Harman74.cor.Rd
2
+ % Part of the R package, http://www.R-project.org
3
+ % Copyright 1995-2007 R Core Development Team
4
+ % Distributed under GPL 2 or later
5
+
6
+ \name{Harman74.cor}
7
+ \docType{data}
8
+ \alias{Harman74.cor}
9
+ \title{Harman Example 7.4}
10
+ \description{
11
+ A correlation matrix of 24 psychological tests given to 145 seventh and
12
+ eight-grade children in a Chicago suburb by Holzinger and Swineford.
13
+ }
14
+ \usage{Harman74.cor}
15
+ \source{
16
+ Harman, H. H. (1976)
17
+ \emph{Modern Factor Analysis}, Third Edition Revised,
18
+ University of Chicago Press, Table 7.4.
19
+ }
20
+ \examples{
21
+ require(stats)
22
+ (Harman74.FA <- factanal(factors = 1, covmat = Harman74.cor))
23
+ for(factors in 2:5) print(update(Harman74.FA, factors = factors))
24
+ Harman74.FA <- factanal(factors = 5, covmat = Harman74.cor,
25
+ rotation="promax")
26
+ print(Harman74.FA$loadings, sort = TRUE)
27
+ }
28
+ \keyword{datasets}
@@ -0,0 +1,57 @@
1
+ % File src/library/datasets/man/Indometh.Rd
2
+ % Part of the R package, http://www.R-project.org
3
+ % Copyright 1995-2011 R Core Development Team
4
+ % Distributed under GPL 2 or later
5
+
6
+ \name{Indometh}
7
+ \docType{data}
8
+ \alias{Indometh}
9
+ \title{Pharmacokinetics of Indomethacin}
10
+ \description{
11
+ The \code{Indometh} data frame has 66 rows and 3 columns of data on
12
+ the pharmacokinetics of indometacin (or, older spelling,
13
+ \sQuote{indomethacin}).
14
+ }
15
+ \usage{Indometh}
16
+ \format{
17
+ This object of class \code{c("nfnGroupedData", "nfGroupedData",
18
+ "groupedData", "data.frame")} containing the following columns:
19
+ \describe{
20
+ \item{Subject}{
21
+ an ordered factor with containing the subject codes. The
22
+ ordering is according to increasing maximum response.
23
+ }
24
+ \item{time}{
25
+ a numeric vector of times at which blood samples were drawn (hr).
26
+ }
27
+ \item{conc}{
28
+ a numeric vector of plasma concentrations of indometacin (mcg/ml).
29
+ }
30
+ }
31
+ }
32
+ \details{
33
+ Each of the six subjects were given an intravenous injection of
34
+ indometacin.
35
+
36
+ This dataset was originally part of package \code{nlme}, and that has
37
+ methods (including for \code{[}, \code{as.data.frame}, \code{plot} and
38
+ \code{print}) for its grouped-data classes.
39
+ }
40
+ \source{
41
+ Kwan, Breault, Umbenhauer, McMahon and Duggan (1976)
42
+ Kinetics of Indomethacin absorption, elimination, and
43
+ enterohepatic circulation in man.
44
+ \emph{Journal of Pharmacokinetics and Biopharmaceutics} \bold{4},
45
+ 255--280.
46
+
47
+ Davidian, M. and Giltinan, D. M. (1995)
48
+ \emph{Nonlinear Models for Repeated Measurement Data},
49
+ Chapman & Hall (section 5.2.4, p. 129)
50
+
51
+ Pinheiro, J. C. and Bates, D. M. (2000) \emph{Mixed-effects Models in
52
+ S and S-PLUS}, Springer.
53
+ }
54
+ \seealso{
55
+ \code{\link{SSbiexp}} for models fitted to this dataset.
56
+ }
57
+ \keyword{datasets}
@@ -0,0 +1,45 @@
1
+ % File src/library/datasets/man/InsectSprays.Rd
2
+ % Part of the R package, http://www.R-project.org
3
+ % Copyright 1995-2007 R Core Development Team
4
+ % Distributed under GPL 2 or later
5
+
6
+ \name{InsectSprays}
7
+ \docType{data}
8
+ \alias{InsectSprays}
9
+ \title{Effectiveness of Insect Sprays}
10
+ \description{
11
+ The counts of insects in agricultural experimental units treated with
12
+ different insecticides.
13
+ }
14
+ \usage{InsectSprays}
15
+ \format{
16
+ A data frame with 72 observations on 2 variables.
17
+ \tabular{rlll}{
18
+ [,1] \tab count \tab numeric \tab Insect count\cr
19
+ [,2] \tab spray \tab factor \tab The type of spray
20
+ }
21
+ }
22
+ \source{
23
+ Beall, G., (1942)
24
+ The Transformation of data from entomological field experiments,
25
+ \emph{Biometrika}, \bold{29}, 243--262.
26
+ }
27
+ \references{
28
+ McNeil, D. (1977) \emph{Interactive Data Analysis}.
29
+ New York: Wiley.
30
+ }
31
+ \examples{
32
+ require(stats); require(graphics)
33
+ boxplot(count ~ spray, data = InsectSprays,
34
+ xlab = "Type of spray", ylab = "Insect count",
35
+ main = "InsectSprays data", varwidth = TRUE, col = "lightgray")
36
+ fm1 <- aov(count ~ spray, data = InsectSprays)
37
+ summary(fm1)
38
+ opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
39
+ plot(fm1)
40
+ fm2 <- aov(sqrt(count) ~ spray, data = InsectSprays)
41
+ summary(fm2)
42
+ plot(fm2)
43
+ par(opar)
44
+ }
45
+ \keyword{datasets}