From 0d985f97d7983626ed9340a2fd77eb1af2b2cdbd Mon Sep 17 00:00:00 2001 From: Homer White Date: Sun, 14 Jun 2020 19:44:19 -0400 Subject: [PATCH] v0.3.2 final prep for CRAN release --- NEWS.md | 4 +- R/BinomSkew.R | 5 ++- R/CIProp.R | 2 +- R/ChisqSimSlow.R | 10 ++--- R/DtrellHist.R | 7 +-- R/DtrellScat.R | 4 +- R/EmpRuleGC.R | 2 +- R/FindRegLine.R | 17 ++++--- R/Points2Watch.R | 2 +- R/SampDist2Means.R | 2 +- R/SampDistMean.R | 2 +- R/ShallowReg.R | 19 +++++--- R/Skewer.R | 2 +- R/Type12Errors.R | 2 +- R/VaryCorrelation.R | 2 +- R/barchartGC.R | 30 ++++++------- R/chisqtestGC.R | 4 +- R/colPerc.R | 2 +- R/data.R | 72 +++++++++++++++--------------- R/lmGC.R | 4 +- R/pnormGC.R | 3 +- R/polyfitGC.R | 4 +- R/ptGC.R | 3 +- R/qnormGC.R | 4 +- R/rowPerc.R | 2 +- R/theme.R | 2 +- R/themerpres.R | 2 +- man/BinomSkew.Rd | 5 ++- man/CIProp.Rd | 2 +- man/ChisqSimSlow.Rd | 10 ++--- man/DtrellHist.Rd | 7 +-- man/DtrellScat.Rd | 4 +- man/EmpRuleGC.Rd | 2 +- man/FindRegLine.Rd | 17 ++++--- man/Points2Watch.Rd | 2 +- man/SampDist2Means.Rd | 2 +- man/SampDistMean.Rd | 2 +- man/ShallowReg.Rd | 19 +++++--- man/Skewer.Rd | 2 +- man/Type12Errors.Rd | 2 +- man/VaryCorrelation.Rd | 2 +- man/alcohol.Rd | 2 +- man/attitudes.Rd | 4 +- man/barchartGC.Rd | 28 ++++++------ man/beans.Rd | 8 ++-- man/cabrera.Rd | 4 +- man/chisqtestGC.Rd | 4 +- man/chugtime.Rd | 2 +- man/colPerc.Rd | 2 +- man/gcstudents.Rd | 2 +- man/gss02.Rd | 2 +- man/gss08.Rd | 2 +- man/handheight.Rd | 2 +- man/hanford1.Rd | 2 +- man/hofbatting.Rd | 4 +- man/hofpitching.Rd | 2 +- man/imagpop.Rd | 2 +- man/knifeorgunblock.Rd | 2 +- man/ledgejump.Rd | 2 +- man/lmGC.Rd | 2 +- man/nonresponse.Rd | 8 ++-- man/nosmokeday.Rd | 2 +- man/pennstate1.Rd | 2 +- man/plot.GClm.Rd | 2 +- man/plot.polyGC.Rd | 2 +- man/pnormGC.Rd | 3 +- man/polyfitGC.Rd | 2 +- man/ptGC.Rd | 3 +- man/pushups.Rd | 6 +-- man/qnormGC.Rd | 4 +- man/rowPerc.Rd | 2 +- man/sealsO2.Rd | 2 +- man/temperature.Rd | 2 +- man/theme.rpres.Rd | 2 +- man/themerpres.Rd | 2 +- man/tornado.Rd | 2 +- man/ucdavis1.Rd | 2 +- man/verlander.Rd | 2 +- man/youthrisk03.Rd | 2 +- {man => usefulInfo}/ostrichtemp.Rd | 2 +- 80 files changed, 228 insertions(+), 196 deletions(-) rename {man => usefulInfo}/ostrichtemp.Rd (93%) diff --git a/NEWS.md b/NEWS.md index 7b29abf..0ae72c1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -8,7 +8,7 @@ New instructional helpers: * `random_normal_factory()` -## Bugfixes +## Bug fixes Console output for `ttestGC()` and similar functions now shows correctly in R Markdown notebooks. @@ -46,7 +46,7 @@ Addition of vignette "Teaching with Tigerstats." ## Major changes * Addition of `qnormGC()` -* Addition of check argument to `lmGC()`. Diagnostics are no longer done with the diag argument; instead one calls the `plot()` function. +* Addition of check argument to `lmGC()`. Diagnostics are no longer done with the `diag` argument; instead one calls the `plot()` function. * Addition of `polyfitGC()` * Addition of `henderson` data frame; the `seals` data frame has been re-named to `sealsO2` to avoid name conflict with `seals` in the ggplot2 package. * Addition of function `helpGC()`, a convenience function to view package vignettes in the R Studio Viewer pane. diff --git a/R/BinomSkew.R b/R/BinomSkew.R index b796e30..dfb876b 100755 --- a/R/BinomSkew.R +++ b/R/BinomSkew.R @@ -1,7 +1,8 @@ #' @title Skewness in the Binomial Family of Distributions -#' @description An app to investigate how skewness in a binomial distribtution vanishes -#' when np is large enough. Sample size is set at n = 50, but the user can vary p with a slider. +#' @description An app to investigate how skew-ness in a binomial distribution vanishes +#' when np is large enough. Sample size is set at n = 50, but the user can vary p with a +#' slider. #' #' @rdname BinomSkew #' @usage BinomSkew() diff --git a/R/CIProp.R b/R/CIProp.R index dec4652..d285c6f 100755 --- a/R/CIProp.R +++ b/R/CIProp.R @@ -12,7 +12,7 @@ #' @return Graphical and numerical output #' @export #' @author Rebekah Robinson \email{rebekah_robinson@@georgetowncollege.edu} -#' @note Uses manipulate from RStudio +#' @note Uses manipulate from R Studio #' @examples #' \dontrun{ #' if (require(manipulate)) CIProp() diff --git a/R/ChisqSimSlow.R b/R/ChisqSimSlow.R index 6f78539..659ce48 100755 --- a/R/ChisqSimSlow.R +++ b/R/ChisqSimSlow.R @@ -12,12 +12,12 @@ #' fixed effects (see below for explanation), x should be the #' variable that is considered the predictor variable. #' @param data A data frame from which x and y are drawn. -#' @param effects When effects="fixed", the resampling is performed under -#' the conditon that the row sums in the resampled two-way table (with x -#' for rows) are the same as the row sums in the twoway table based on the +#' @param effects When effects="fixed", the re-sampling is performed under +#' the condition that the row sums in the re-sampled two-way table (with x +#' for rows) are the same as the row sums in the two-way table based on the #' original data. When effects="random", then both row and column sums -#' in the resampled table may vary: only the sum of the counts is -#' constant. (Note: in the resampling procedure for chisq.test +#' in the re-sampled table may vary: only the sum of the counts is +#' constant. (Note: in the re-sampling procedure for chisq.test #' in the stats package of R, both row and column sums are #' required to equal the corresponding sums for the original data.) #' @return Graphical and numerical output diff --git a/R/DtrellHist.R b/R/DtrellHist.R index eb68a18..f44112c 100755 --- a/R/DtrellHist.R +++ b/R/DtrellHist.R @@ -1,12 +1,13 @@ #' @title Dynamic Trellising (Histogram) -#' @description A manipulative app that facilitates exploration of the distribution of a single numerical -#' variable, conditoned upon the values of either a numerical variable or a factor. +#' @description A manipulative app that facilitates exploration of the distribution +#' of a single numerical variable, conditioned upon the values of either a +#' numerical variable or a factor. #' #' @rdname DtrellHist #' @usage DtrellHist(form,data) #' @param form a formula of the form \code{~var|cond}. \code{var} must be numeric; \code{cond} may be either numeric or factor. -#' @param data A data frame fromm \code{var} and \code{cond} are drawn. +#' @param data A data frame from \code{var} and \code{cond} are drawn. #' @return Graphical output. #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} diff --git a/R/DtrellScat.R b/R/DtrellScat.R index cd01e7f..bd352c8 100755 --- a/R/DtrellScat.R +++ b/R/DtrellScat.R @@ -1,7 +1,7 @@ #' @title Dynamic Trellising (Scatterplot) -#' @description An app to facilitate exploration of the relationship between two numerical variables, conditonal upon -#' the values of a third variable. +#' @description An app to facilitate exploration of the relationship between two numerical +#' variables, conditional upon the values of a third variable. #' #' @rdname DtrellScat #' @usage DtrellScat(form,data) diff --git a/R/EmpRuleGC.R b/R/EmpRuleGC.R index cea0b17..ab08eba 100755 --- a/R/EmpRuleGC.R +++ b/R/EmpRuleGC.R @@ -11,7 +11,7 @@ #' @return Returns no value. Used for the plotting side-effects. #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} -#' @note Uses \code{manipulate} in RStudio +#' @note Uses \code{manipulate} in R Studio #' @examples #' \dontrun{ #' if(require(manipulate)) EmpRuleGC(mean=70,sd=3,xlab="Height (inches)") diff --git a/R/FindRegLine.R b/R/FindRegLine.R index 8484544..e43ccf5 100755 --- a/R/FindRegLine.R +++ b/R/FindRegLine.R @@ -1,17 +1,22 @@ #' @title Find the Regression Line -#' @description The regression minimizes the residual sum of squares (RSS). In this game, the player chooses slope and y-intercept -#' of a line so as to approximate the regression line. The moveable line is set initially as a horizontal line with height equal to -#' the mean of the y-coordinates of the scatterplot, so initially the residual sum of squares equals the total sum of squares (TSS). -#' The player's score is the sum of the number of turns taken and the difference between the current RSS -#' and the regression line's RSS (as a percentage of TSS-RSS for regression line). The aim is to lower one's score. +#' @description The regression minimizes the residual sum of squares (RSS). In this +#' game, the player chooses slope and y-intercept +#' of a line so as to approximate the regression line. The move-able +#' line is set initially as a horizontal line with height equal to +#' the mean of the y-coordinates of the scatter plot, so initially +#' the residual sum of squares equals the total sum of squares (TSS). +#' The player's score is the sum of the number of turns taken and the +#' difference between the current RSS +#' and the regression line's RSS (as a percentage of TSS-RSS for regression +#' line). The aim is to lower one's score. #' #' @rdname FindRegLine #' @usage FindRegLine #' @return Graphical and numerical output. #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} -#' @note Requires package \code{manipulate}, available only in RStudio. +#' @note Requires package \code{manipulate}, available only in R Studio. #' @examples #' \dontrun{ #' if (require(manipulate)) FindRegLine() diff --git a/R/Points2Watch.R b/R/Points2Watch.R index a557f68..7496e7c 100755 --- a/R/Points2Watch.R +++ b/R/Points2Watch.R @@ -8,7 +8,7 @@ #' @return Graphical output. #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} -#' @note Requires package \code{manipulate}, available only in RStudio. +#' @note Requires package \code{manipulate}, available only in R Studio. #' Uses \code{mvrnorm} from package \code{MASS}. #' @examples #' \dontrun{ diff --git a/R/SampDist2Means.R b/R/SampDist2Means.R index 95de2cd..d99dca3 100755 --- a/R/SampDist2Means.R +++ b/R/SampDist2Means.R @@ -11,7 +11,7 @@ #' @return Graphical and numerical output. #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} -#' @note Uses \code{manipulate} in RStudio. Also requires package \code{lattice}. +#' @note Uses \code{manipulate} in R Studio. Also requires package \code{lattice}. #' @examples #' \dontrun{ #' data(imagpop) diff --git a/R/SampDistMean.R b/R/SampDistMean.R index c8e04f1..b89426e 100755 --- a/R/SampDistMean.R +++ b/R/SampDistMean.R @@ -10,7 +10,7 @@ #' @return Graphical and numerical output. #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} -#' @note Uses \code{manipulate} in RStudio. +#' @note Uses \code{manipulate} in R Studio. #' @examples #' \dontrun{ #' data(imagpop) diff --git a/R/ShallowReg.R b/R/ShallowReg.R index 8ebb26a..f8845ea 100755 --- a/R/ShallowReg.R +++ b/R/ShallowReg.R @@ -1,19 +1,24 @@ #' @title Regression Line Too Shallow? -#' @description The regession line is not as steep as the SD Line (line through point of averages, with slope = sd(y)/sd(x)). The difference -#' is especially noticeable when the scatterplot is the result of a sample from a bivariate normal distribution. This app explains -#' why we use the regression line to predict y from x, even though the SD line appears to be a better linear summary of the -#' scatterplot. Can be used as a starting-point for a discussion of "regression to the mean." +#' @description The regression line is not as steep as the SD Line (line +#' through point of averages, with slope = sd(y)/sd(x)). The difference +#' is especially noticeable when the scatter plot is the result of a sample +#' from a bivariate normal distribution. This app explains +#' why we use the regression line to predict y from x, even though the +#' SD line appears to be a better linear summary of the +#' scatter plot. Can be used as a starting-point for a discussion of +#' "regression to the mean." #' #' @rdname ShallowReg #' @usage ShallowReg(n=900,rho=0.5) -#' @param n Number of points in the scatterplot. -#' @param rho Target correlation for the scatterplot. Points are selected from a standardized bivariate normal distribtuion, with +#' @param n Number of points in the scatter plot. +#' @param rho Target correlation for the scatter plot. Points are selected from +#' a standardized bivariate normal distribution, with #' correlation rho. #' @return Graphical output. #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} -#' @note Uses \code{manipulate}, available only in RStudio, and \code{mvrnorm} from package \code{MASS}. +#' @note Uses \code{manipulate}, available only in R Studio, and \code{mvrnorm} from package \code{MASS}. #' @examples #' \dontrun{ #' if (require(manipulate)) ShallowReg() diff --git a/R/Skewer.R b/R/Skewer.R index 386b3cf..c510b83 100755 --- a/R/Skewer.R +++ b/R/Skewer.R @@ -1,4 +1,4 @@ -#' @title SkewR +#' @title Skewness and Box Plots #' @description An app to illustrate the effect of skewness on the shape of a boxplot. #' diff --git a/R/Type12Errors.R b/R/Type12Errors.R index 9c2ea2e..09e6d98 100755 --- a/R/Type12Errors.R +++ b/R/Type12Errors.R @@ -2,7 +2,7 @@ #' @description An app to explore the concepts of Type I and Type II errors, and the concept of #' power. We take samples from a population that is imagined to be normal, and perform the t-procedures -#' for one mean. The Null Hypotheis is H0: mu=170. A slider allows us to vary the true mean mu. +#' for one mean. The Null Hypothesis is H0: mu=170. A slider allows us to vary the true mean mu. #' #' @rdname Type12Errors #' @usage Type12Errors() diff --git a/R/VaryCorrelation.R b/R/VaryCorrelation.R index e6c3820..d0afb36 100755 --- a/R/VaryCorrelation.R +++ b/R/VaryCorrelation.R @@ -9,7 +9,7 @@ #' @return Graphical output. #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} -#' @note Uses \code{manipulate} in RStudio, and \code{mvrnorm} from package \code{MASS}. +#' @note Uses \code{manipulate} in R Studio, and \code{mvrnorm} from package \code{MASS}. #' @examples #' \dontrun{ #' if(require(manipulate)) VaryCorrelation(n=500) diff --git a/R/barchartGC.R b/R/barchartGC.R index 4e60d57..76e7839 100755 --- a/R/barchartGC.R +++ b/R/barchartGC.R @@ -1,9 +1,9 @@ -#' @title Easy Barcharts +#' @title Easy Bar Charts #' @description Wrapper for \code{\link{barchart}} in package \code{lattice}. Creates a -#' barchart from raw data using formula-data syntax similar to that of \code{\link{xtabs}}, +#' bar chart from raw data using formula-data syntax similar to that of \code{\link{xtabs}}, #' or from a table. Defaults to a "standard" -#' barchart in which the bars are vertical and unstacked. Supports percentage barcharts. +#' bar chart in which the bars are vertical and un-stacked. Supports percentage bar charts. #' #' @rdname barchartGC #' @usage barchartGC(x,data=parent.frame(),type="frequency",flat=FALSE,auto.key=TRUE, @@ -13,33 +13,33 @@ #' @param data Usually a data frame that supplies the variables in \code{x}. Variables not in the data #' argument are searched for in the parent environment. #' @param type Possible values are "frequency" and "percent". -#' @param flat If set to TRUE, will produce barchart that resembles the layout of \code{xtabs} +#' @param flat If set to TRUE, will produce bar chart that resembles the layout of \code{xtabs} #' @param auto.key Provides a simple key -#' @param horizontal Determines orientation of the bars (overrriden by flat) -#' @param stack Determines whether bars for tallies are stacked on eac other or placed -#' next to one another (overrriden by flat) +#' @param horizontal Determines orientation of the bars (overridden by flat) +#' @param stack Determines whether bars for tallies are stacked on each other or placed +#' next to one another (overriden by flat) #' @param ... other arguments passed to \code{barchart}: these include main, sub, and #' xlab, which are likely to be familiar to students from other \code{lattice} graphical #' functions. An error is possible if other arguments #' pertaining to legends are passed (hopefully anyone interested in such will have moved on #' to \code{barchart}). -#' @return A trellis object describing the barchart. +#' @return A trellis object describing the bar chart. #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} #' @examples -#' #barchart of counts for one factor variable: +#' #bar chart of counts for one factor variable: #' barchartGC(~sex,data=m111survey) #' -#' #barchart with percentages and title: +#' #bar chart with percentages and title: #' barchartGC(~sex,data=m111survey, #' type="percent", #' main="Distribution of Sex") #' -#' #barchart of counts, to study the relationship between +#' #bar chart of counts, to study the relationship between #' #two factor variables: #' barchartGC(~sex+seat,data=m111survey) #' -#' #percentage barchart, two factor variables: +#' #percentage bar chart, two factor variables: #' barchartGC(~sex+seat,data=m111survey,type="percent") #' #' #From tabulated data: @@ -50,10 +50,10 @@ #' dieTosses <- c(one=8,two=18,three=11,four=7,five=9,six=7) #' barchartGC(dieTosses,main="60 Rolls of a Die") #' -#' # a "flat" barchart, pictorial version of xtabs() +#' # a "flat" bar chart, pictorial version of xtabs() #' barchartGC(~sex+seat,data=m111survey,flat=TRUE,ylab="Sex") #' -#' # a "flat" barchart, pictorial version of xtabs() +#' # a "flat" bar chart, pictorial version of xtabs() #' barchartGC(~sex+seat,data=m111survey,type="percent",flat=TRUE,ylab="Sex") barchartGC <- function(x,data=parent.frame(), @@ -77,7 +77,7 @@ barchartGC <- type <- "percent" } - # handle arugments when user wants a barchart that looks like xtabs() + # handle arugments when user wants a bar chart that looks like xtabs() if (flat==TRUE) { stack <- TRUE horizontal <- TRUE diff --git a/R/chisqtestGC.R b/R/chisqtestGC.R index c521665..5cc7a5b 100755 --- a/R/chisqtestGC.R +++ b/R/chisqtestGC.R @@ -8,14 +8,14 @@ #' simulate.p.value = FALSE, B = 2000, verbose = TRUE) #' @param x Could be a formula. If so, either ~var (for goodness of fit) or ~var1+var2 (for test for association). #' Otherwise either a table, matrix or vector of summary data. -#' @param data dataframe supplying variables for formula x. If variables in x ar enot found in the data, +#' @param data dataframe supplying variables for formula x. If variables in x are not found in the data, #' then they will be searched for in the parent environment. #' @param p For goodness of fit, a vector of probabilities. This will be automatically scaled so as to sum #' to 1. Negative elements result in an error message. #' @param graph produce relevant graph for P-value (chi-square curve or histogram of simulation results). #' @param simulate.p.value If FALSE, use a chi-square distribution to estimate the P-value. Other possible #' values are "random" and "fixed" and TRUE. Random effects are suitable for resampling when the data are a random -#' sample from a poulation. Fixed effects assume that the values of the explanatory variable (row variable for table, +#' sample from a population. Fixed effects assume that the values of the explanatory variable (row variable for table, #' var1 in formula ~var1+var2) remain fixed in resampling, and values of response variable are random with null #' distribution estimated from the data. When set to TRUE, we implement an equivalent to R's routine. #' In our view procedure is diff --git a/R/colPerc.R b/R/colPerc.R index 535f98d..8d14d41 100755 --- a/R/colPerc.R +++ b/R/colPerc.R @@ -1,6 +1,6 @@ #' @title Column Percents -#' @description Computes column percentages for a given twoway table. +#' @description Computes column percentages for a given two-way table. #' #' @rdname colPerc #' @usage colPerc(tab) diff --git a/R/data.R b/R/data.R index f6184f4..e3055af 100755 --- a/R/data.R +++ b/R/data.R @@ -10,7 +10,7 @@ #' year.} #' \item{enrollment}{Full-time equivalent enrollment.} #' \item{writeups}{Number of write-ups for alcohol violations.} -#' \item{writeups.per.100}{Number of writeups per 100 students.} } +#' \item{writeups.per.100}{Number of write-ups per 100 students.} } #' @source Collected by MAT 111 students as a project. #' @keywords datasets #' @@ -32,7 +32,7 @@ NA #' \item{vic.race}{Suggested race of the victim in the survey form.} #' \item{conc.situation}{Scenario described in the #' in the "rock concert" question on the survey form.} -#' \item{sentence}{Sentence, in years, reccommended for the defendant.} +#' \item{sentence}{Sentence, in years, recommended for the defendant.} #' \item{conc.decision}{Whether or not the subject chose to buy a ticket (or buy another #' ticket).} #' \item{year}{Class rank of the subject.} @@ -50,7 +50,7 @@ NA #' defendant has been found guilty, and in Pennsylvania it is part of the job #' of the jury to recommend a sentence to the judge. The facts of the case are #' as follows. The defendant, Tyrone Marcus Watson, a 35-year old native of -#' Lewistown, was driving under the influence of alchohol on the evening of +#' Lewistown, was driving under the influence of alcohol on the evening of #' Tuesday July 17, 2001. At approximately 11:00 PM Watson drove through a red #' light, striking a pedestrian, Betsy Brockenheimer, a 20-year old resident of #' Lewistown. Brockenheimer was taken unconscious to the hospital and died of @@ -107,7 +107,7 @@ NA #' Experiment performed at UC-Davis; fifteen students participated. Each #' student was asked to place as many beans into a cup as he/she could, in 15 #' seconds. Each student performed this task once with the dominant hand, and -#' once with the nondominat hand, but the order of performance was randomized. +#' once with the non-dominant hand, but the order of performance was randomized. #' The purpose of the study was to see whether manual dexterity was better for #' the dominant hand. Terminology: your dominant hand is the hand you use the #' most. @@ -119,10 +119,10 @@ NA #' \describe{ \item{Dom}{Number of beans placed into #' cup with the dominant hand.} #' \item{NonDom}{Number -#' of beans placed with the nondominant hand.} -#' \item{Diff}{Difference in number of beans placed (dominant hand minus nondominant +#' of beans placed with the non-dominant hand.} +#' \item{Diff}{Difference in number of beans placed (dominant hand minus non-dominant #' hand).} } -#' @source Uts and Heckard, Mind on Statistics, 4th Edition. +#' @source Uts and Heckard, Mind on Statistics, Fourth Edition. #' @keywords datasets @@ -146,12 +146,12 @@ NA #' \item{speed}{speed of pitch (in mph). (When crossing plate?)} #' \item{px}{x-coordinate of pitch (in feet, measured from center of plate)} #' \item{pz}{vertical coordinate of pitch (in feet above plate)} -#' \item{swung}{Whether or not cabrera swung at the ball. Factor with levels "no", "yes".} +#' \item{swung}{Whether or not Cabrera swung at the ball. Factor with levels "no", "yes".} #' \item{hitx}{x-coordinate of landing point of ball (if it was hit). Relative to park.} #' \item{hity}{y-coordinate of landing point of ball (if it was hit). Relative to park.} #' \item{hit_outcome}{Outcome when ball was hit. Factor with levels E (error), H (hit), O (batter out).} #' } -#' @source Marchi and Albert: Analyziing Baseball Data with R, CRC Press 2014. For +#' @source Marchi and Albert: analyzing Baseball Data with R, CRC Press 2014. For #' more on the PITCHf/x system, see \url{http://en.wikipedia.org/wiki/PITCHf/x}. #' #' @keywords datasets @@ -173,7 +173,7 @@ NA #' \item{ChugTime}{How long (in seconds) the subject requires to drink the #' beverage.} #' } -#' @source Utts and Heckard, Mind on Statistics, 4th Edition. +#' @source Utts and Heckard, Mind on Statistics, Fourth Edition. #' @keywords datasets #' @@ -271,7 +271,7 @@ NA #' @format A data frame with 62 observations on the following 4 variables. #' \describe{ \item{height}{height of the survey participant, in inches} #' \item{GPA}{grade-point average} -#' \item{enough_Sleep}{Does the particpant feel that he/she gets enough sleep?} +#' \item{enough_Sleep}{Does the participant feel that he/she gets enough sleep?} #' \item{sex}{sex of the survey participant} #' } #' @source MAT 111 at Georgetown College @@ -319,7 +319,7 @@ NA #' \item{emailtime}{estimated number of hours per week subject spends using email.} #' } #' @source National Opinion Research Center: \url{http://www3.norc.org/gss+website/}. -#' Found in Uts and Heckard: Mind on Statistics, 4th Edition. +#' Found in Uts and Heckard: Mind on Statistics, Fourth Edition. #' @keywords datasets @@ -348,7 +348,7 @@ NA #' \item{chldidel}{a numeric vector} } #' @references For more information see \code{gss02} #' @source National Opinion Research Center: \url{http://www3.norc.org/gss+website/}. -#' Found in Uts and Heckard: Mind on Statistics, 4th Edition. +#' Found in Uts and Heckard: Mind on Statistics, Fourth Edition. #' @keywords datasets NA @@ -414,13 +414,13 @@ NA #' \item{Height}{height of subject, in inches.} #' \item{HandSpan}{handspan of subject, in centimeters.} #' } -#' @source Uts and Heckard, Mind on Statistics, 4th Edition. +#' @source Uts and Heckard, Mind on Statistics, Fourth Edition. #' @keywords datasets NA -#' Handford Weather Station, 1984-2010 +#' Hanford Weather Station, 1984-2010 #' #' The station is located in Hanford, WA. #' @@ -524,7 +524,7 @@ NA #' \item{HR}{Home runs} #' \item{HR.Rate}{Number of home runs divided by number of times at bat} #' \item{RBI}{Runs batted in} -#' \item{SB}{Number of succesful stolen base attempts} +#' \item{SB}{Number of successful stolen base attempts} #' \item{CS}{Number of times thrown out while attempting to steal a base} #' \item{BB}{Base on Balls (number of times "walked")} #' \item{SO}{Number of times struck out} @@ -533,7 +533,7 @@ NA #' \item{SLG}{Slugging average} #' \item{OPS}{OBP plus SLG} #' } -#' @source Modified from Marchi and Albert: Analyziing Baseball Data with R, CRC Press 2014. +#' @source Modified from Marchi and Albert: analyzing Baseball Data with R, CRC Press 2014. #' @keywords datasets @@ -584,7 +584,7 @@ NA #' \item{WP}{Wild Pitches} #' \item{BF}{Total batters faced} #' } -#' @source Modified from Marchi and Albert: Analyziing Baseball Data with R, CRC Press 2014. +#' @source Modified from Marchi and Albert: analyzing Baseball Data with R, CRC Press 2014. #' @keywords datasets @@ -602,7 +602,7 @@ NA #' \item cappun. Opinion about the death penalty (favor, oppose). #' \item height. Height in inches. #' \item idealheight. The height you would like to be, in inches. -#' \item diff. Idealheight - actual height. +#' \item diff. ideal height - actual height. #' \item kkardashtemp. Your feelings about Kim Kardashian on a 0-100 scale (0=very cold, 100=very warm). #' } #' @@ -652,7 +652,7 @@ NA #' @format A data frame with 20 observations on the following 3 variables. #' \describe{ #' \item{hoghollerer}{a factor with levels \code{no} -#' \code{yes} whether or not the subject competes in hog-hollerin' contests} +#' \code{yes} whether or not the subject competes in hog-hollering contests} #' \item{means}{a factor with levels \code{gun} #' \code{knife} means by which subject is slain} #' \item{volume}{volume of expiring subject's cries.} @@ -704,7 +704,7 @@ NA #' @keywords datasets #' @source "The baiting crowd in episodes of threatened suicide", #' \emph{Journal of Personality and Social Psychology}, 41, 703-709. See also dataset 59 in -#' \emph{A Handbook of Small Datasets} by Hand et. al. See also \url{http://www.ncbi.nlm.nih.gov/pubmed/7288565}. +#' \emph{A Handbook of Small Datasets} by Hand et al. See also \url{http://www.ncbi.nlm.nih.gov/pubmed/7288565}. #' @format A data frame with 21 rows and 2 variables #' @name ledgejump @@ -887,12 +887,14 @@ NA #' @name nonresponse #' @docType data #' @format A data frame with 4229 observations on the following 3 variables. -#' \describe{ \item{residence}{where the subject resides: either in Copenhagen, a city outside of Copenhagen, or +#' \describe{ \item{residence}{where the subject resides: either in Copenhagen, +#' a city outside of Copenhagen, or #' in the countryside} #' \item{gender}{sex of the subject} -#' \item{response}{Whether or not eh subject responded to the mail survey}} +#' \item{response}{Whether or not the subject responded to the mail survey}} #' @source Rebuilt from a contingency table in E. B. Andersen (1991), -#' The Statistical Analysis of Categorical Data. 2nd edition. Springer-Verlag, Berlin. Table found in +#' The Statistical Analysis of Categorical Data, Second Edition. Springer-Verlag, +#' Berlin. Table found in #' package \code{vcd}. #' @keywords datasets @@ -913,7 +915,7 @@ NA #' National No Smoke Day in the United Kingdom} #' \item{Injuries.on.NSD}{number of injury accidents on #' National No Smoke Day in the United Kingdom}} -#' @source J. Knwles, "Nicotine withdrawal and road accidents", Science, 400, 128, (8 July 1999). +#' @source J. Knowles, "Nicotine withdrawal and road accidents", Science, 400, 128, (8 July 1999). #' Found in Whitlock and Schluter, The Analysis of Biological Data. #' @keywords datasets @@ -990,16 +992,16 @@ NA #' subject varied from one survey form to another. This variable indicates #' which letter was presented first on the form.} #' } -#' @source Uts and Heckard, Mind on Statistics, 4th Edition. +#' @source Uts and Heckard, Mind on Statistics, Fourth Edition. #' @keywords datasets NA -#' Pushups by Football Players at Georgetown College +#' Push-ups by Football Players at Georgetown College #' -#' Two football players at GC asked their team-mates to do as many pushups as +#' Two football players at GC asked their team-mates to do as many push-ups as #' they could in two minutes. #' #' @@ -1009,7 +1011,7 @@ NA #' \describe{ #' \item{weight}{weight of subject in #' pounds.} -#' \item{pushups}{number of pushups +#' \item{pushups}{number of push-ups #' completed.} #' \item{position}{a factor with levels \code{LINE} #' \code{SKILL}: type of position played by the subject. Line positions @@ -1073,7 +1075,7 @@ NA NA -#' Weddell Seal Oxygen Consumptions +#' Weddell Seal Oxygen Consumption #' #' Results of an experiment conducted on ten Weddell seals. #' @@ -1145,7 +1147,7 @@ NA #' #' @docType data #' @keywords datasets -#' @source Mind on Statistics, 4th edition, Uts and Heckard. +#' @source Mind on Statistics, Fourth Edition, Uts and Heckard. #' @format A data frame with 20 observations on 5 variables. #' @name temperature @@ -1187,7 +1189,7 @@ NA #' #' \itemize{ #' \item{\code{state}} {the state} -#' \item{\code{damage}} {mean annual damage from tornados, over a five-year period, in millions of dollars} +#' \item{\code{damage}} {mean annual damage from tornadoes, over a five-year period, in millions of dollars} #' } #' #' @docType data @@ -1223,7 +1225,7 @@ NA #' #' @docType data #' @keywords datasets -#' @source Mind on Statistics, 4th edition, Uts and Heckard. +#' @source Mind on Statistics, Fourth Edition, Uts and Heckard. #' @format A data frame with 173 observations on 12 variables.. #' @name ucdavis1 @@ -1259,7 +1261,7 @@ NA #' movement. Measured at 40 feet from home plate.} #' \item{batter_hand}{A factor with two values: L (left) and R (right).} #' } -#' @source Marchi and Albert: Analyziing Baseball Data with R, CRC Press 2014. For +#' @source Marchi and Albert: analyzing Baseball Data with R, CRC Press 2014. For #' more on the PITCHf/x system, see \url{http://en.wikipedia.org/wiki/PITCHf/x}. #' #' @keywords datasets @@ -1284,7 +1286,7 @@ NA #' #' @docType data #' @keywords datasets -#' @source Mind on Statistics, 4th Edition, by Uts and Heckard. +#' @source Mind on Statistics, Fourth Edition, by Uts and Heckard. #' @format A data frame with 3042 observations on 7 variables. #' @name youthrisk03 diff --git a/R/lmGC.R b/R/lmGC.R index d912325..9bea2f2 100755 --- a/R/lmGC.R +++ b/R/lmGC.R @@ -8,7 +8,7 @@ #' @param form formula of form y~x, both variables numeric #' @param data dataframe supplying y and x above. If one or more of the variables is not in data, then #' they will be searched for in the parent environment. -#' @param graph Produce scatterplot with fitted ploynomial, together with prediction standard error bands +#' @param graph Produce scatterplot with fitted polynomial, together with prediction standard error bands #' @param check Asks to produce a lowess or gam curve with approximate 95%-confidence band. If the #' fitted line wanders outside the band, then perhaps a linear fit is not appropriate. #' @return A list of class "GClm". Elements that may be queried include "slope", "intercept", @@ -71,7 +71,7 @@ lmGC <-function(form,data=parent.frame(),graph=FALSE,check=FALSE) { #' \S3method{plot}{GClm}(x,...) #' @param x An object of class GClm #' @param \ldots ignored -#' @return two diagmostic plots +#' @return two diagnostic plots #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} #' @examples diff --git a/R/pnormGC.R b/R/pnormGC.R index bc2865d..110c319 100755 --- a/R/pnormGC.R +++ b/R/pnormGC.R @@ -4,7 +4,8 @@ #' #' @rdname pnormGC #' @usage pnormGC(bound,region="below",mean=0,sd=1,graph=FALSE) -#' @param bound A numerical vector of length 1 or 2, indicating boundary(ies) of shaded region on horizontal axis +#' @param bound A numerical vector of length 1 or 2, indicating the boundary +#' (respectively, boundaries) of shaded region on the bhorizontal axis #' @param region A character string. Default is "below". Possible values are "between" (when boundary consists of two numbers), #' "below", "above", and "outside" (again when boundary consists of two numbers) #' @param mean Mean of the distribution diff --git a/R/polyfitGC.R b/R/polyfitGC.R index 8dad2f9..8be1f32 100755 --- a/R/polyfitGC.R +++ b/R/polyfitGC.R @@ -9,7 +9,7 @@ #' @param data dataframe supplying y and x above. If one or more of the variables is not in data, then #' they will be searched for in the parent environment. #' @param degree desired degree of polynomial (for degree 1 use lmgC) -#' @param graph Produce scatterplot with fitted ploynomial. +#' @param graph Produce scatterplot with fitted polynomial. #' @param check Asks to produce a lowess or gam curve with approximate 95%-confidence band. If the #' fitted line wanders outside the band, then perhaps a linear fit is not appropriate. #' @return A list of class "polyGC". Elements that may be queried include @@ -149,7 +149,7 @@ predict.polyGC <-function(object,x,level=NULL,...) { #' \S3method{plot}{polyGC}(x,...) #' @param x An object of class polyGC #' @param \ldots ignored -#' @return two diagmostic plots +#' @return two diagnostic plots #' @export #' @author Homer White \email{hwhite0@@georgetowncollege.edu} #' @examples diff --git a/R/ptGC.R b/R/ptGC.R index 8fefad8..ac011cc 100755 --- a/R/ptGC.R +++ b/R/ptGC.R @@ -4,7 +4,8 @@ #' #' @rdname ptGC #' @usage ptGC(bound,region="between",df=1,graph=FALSE) -#' @param bound A numerical vector of length 1 or 2, indicating boundary(ies) of shaded region on horizontal axis +#' @param bound A numerical vector of length 1 or 2, indicating the boundary +#' (respectively, boundaries) of shaded region on horizontal axis #' @param region A character string. Possible values are "between" (when boundary consists of two numbers), #' "below", "above", and "outside" (again when boundary consists of two numbers) #' @param df degrees of freedom of the distribution diff --git a/R/qnormGC.R b/R/qnormGC.R index c44fdec..50682ec 100755 --- a/R/qnormGC.R +++ b/R/qnormGC.R @@ -1,6 +1,6 @@ #' @title Graphical Calculator for Normal Curve Percentiles -#' @description When you know a certain area under a normal denisity durve, this function returns +#' @description When you know a certain area under a normal density curve, this function returns #' the x-axis values of the boundary of that area. #' #' @rdname qnormGC @@ -8,7 +8,7 @@ #' @param area The known percentile #' @param region A character string. Default is "below". Other possible values are "between" #' (when known area is symmetric around the mean two numbers), -#' "below", "above", and "outside" (when knonw area is outside a region symmetric around the mean) +#' "below", "above", and "outside" (when known area is outside a region symmetric around the mean) #' @param mean Mean of the distribution #' @param sd Standard deviation of the distribution #' @param graph Will produce graph of the area diff --git a/R/rowPerc.R b/R/rowPerc.R index c1f6fc8..8866eb6 100755 --- a/R/rowPerc.R +++ b/R/rowPerc.R @@ -1,6 +1,6 @@ #' @title Row Percents -#' @description Computes row percentages for a given twoway table. +#' @description Computes row percentages for a given two-way table. #' #' @rdname rowPerc #' @usage rowPerc(tab) diff --git a/R/theme.R b/R/theme.R index e6c880a..d8c5a7c 100755 --- a/R/theme.R +++ b/R/theme.R @@ -1,7 +1,7 @@ #' Lattice Theme or R Presentations #' #' Modifies the current theme for use with lattice graphics in R Presentation dicuments. Increases size of title, -#' axis lables and axis numbers, thickens sone lines, etc. +#' axis lables and axis numbers, thickens some lines, etc. #' #'@usage theme.rpres() #' diff --git a/R/themerpres.R b/R/themerpres.R index 0bc5631..797eb58 100755 --- a/R/themerpres.R +++ b/R/themerpres.R @@ -1,7 +1,7 @@ #' Lattice Theme or R Presentations #' #' Modifies the current theme for use with lattice graphics in R Presentation dicuments. Increases size of title, -#' axis lables and axis numbers, thickens sone lines, etc. +#' axis lables and axis numbers, thickens some lines, etc. #' #'@usage themerpres() #' diff --git a/man/BinomSkew.Rd b/man/BinomSkew.Rd index 8bba451..f2b6a89 100755 --- a/man/BinomSkew.Rd +++ b/man/BinomSkew.Rd @@ -10,8 +10,9 @@ BinomSkew() no value. Graphical side-effects only. } \description{ -An app to investigate how skewness in a binomial distribtution vanishes -when np is large enough. Sample size is set at n = 50, but the user can vary p with a slider. +An app to investigate how skew-ness in a binomial distribution vanishes +when np is large enough. Sample size is set at n = 50, but the user can vary p with a +slider. } \examples{ \dontrun{ diff --git a/man/CIProp.Rd b/man/CIProp.Rd index 82e5fc3..d9254f4 100755 --- a/man/CIProp.Rd +++ b/man/CIProp.Rd @@ -18,7 +18,7 @@ An app to investigate how many times a confidence interval for one population pr it misses. } \note{ -Uses manipulate from RStudio +Uses manipulate from R Studio } \examples{ \dontrun{ diff --git a/man/ChisqSimSlow.Rd b/man/ChisqSimSlow.Rd index 240f17f..9d66054 100755 --- a/man/ChisqSimSlow.Rd +++ b/man/ChisqSimSlow.Rd @@ -13,12 +13,12 @@ variable that is considered the predictor variable.} \item{data}{A data frame from which x and y are drawn.} -\item{effects}{When effects="fixed", the resampling is performed under -the conditon that the row sums in the resampled two-way table (with x -for rows) are the same as the row sums in the twoway table based on the +\item{effects}{When effects="fixed", the re-sampling is performed under +the condition that the row sums in the re-sampled two-way table (with x +for rows) are the same as the row sums in the two-way table based on the original data. When effects="random", then both row and column sums -in the resampled table may vary: only the sum of the counts is -constant. (Note: in the resampling procedure for chisq.test +in the re-sampled table may vary: only the sum of the counts is +constant. (Note: in the re-sampling procedure for chisq.test in the stats package of R, both row and column sums are required to equal the corresponding sums for the original data.)} } diff --git a/man/DtrellHist.Rd b/man/DtrellHist.Rd index 2165d95..449fc1d 100755 --- a/man/DtrellHist.Rd +++ b/man/DtrellHist.Rd @@ -9,14 +9,15 @@ DtrellHist(form,data) \arguments{ \item{form}{a formula of the form \code{~var|cond}. \code{var} must be numeric; \code{cond} may be either numeric or factor.} -\item{data}{A data frame fromm \code{var} and \code{cond} are drawn.} +\item{data}{A data frame from \code{var} and \code{cond} are drawn.} } \value{ Graphical output. } \description{ -A manipulative app that facilitates exploration of the distribution of a single numerical -variable, conditoned upon the values of either a numerical variable or a factor. +A manipulative app that facilitates exploration of the distribution +of a single numerical variable, conditioned upon the values of either a +numerical variable or a factor. } \examples{ \dontrun{ diff --git a/man/DtrellScat.Rd b/man/DtrellScat.Rd index c1a68f7..8212e48 100755 --- a/man/DtrellScat.Rd +++ b/man/DtrellScat.Rd @@ -16,8 +16,8 @@ should be from the data frame \code{data}. \code{c} May be a factor or numerica Graphical and numerical output. } \description{ -An app to facilitate exploration of the relationship between two numerical variables, conditonal upon -the values of a third variable. +An app to facilitate exploration of the relationship between two numerical +variables, conditional upon the values of a third variable. } \examples{ \dontrun{ diff --git a/man/EmpRuleGC.Rd b/man/EmpRuleGC.Rd index f1b42d9..d49eb80 100755 --- a/man/EmpRuleGC.Rd +++ b/man/EmpRuleGC.Rd @@ -21,7 +21,7 @@ An app to facilitate visual understanding of Empirical Rule approximations of probabilities, percentages. } \note{ -Uses \code{manipulate} in RStudio +Uses \code{manipulate} in R Studio } \examples{ \dontrun{ diff --git a/man/FindRegLine.Rd b/man/FindRegLine.Rd index 55fe344..643b1f4 100755 --- a/man/FindRegLine.Rd +++ b/man/FindRegLine.Rd @@ -10,14 +10,19 @@ FindRegLine Graphical and numerical output. } \description{ -The regression minimizes the residual sum of squares (RSS). In this game, the player chooses slope and y-intercept -of a line so as to approximate the regression line. The moveable line is set initially as a horizontal line with height equal to -the mean of the y-coordinates of the scatterplot, so initially the residual sum of squares equals the total sum of squares (TSS). -The player's score is the sum of the number of turns taken and the difference between the current RSS -and the regression line's RSS (as a percentage of TSS-RSS for regression line). The aim is to lower one's score. +The regression minimizes the residual sum of squares (RSS). In this +game, the player chooses slope and y-intercept +of a line so as to approximate the regression line. The move-able +line is set initially as a horizontal line with height equal to +the mean of the y-coordinates of the scatter plot, so initially +the residual sum of squares equals the total sum of squares (TSS). +The player's score is the sum of the number of turns taken and the +difference between the current RSS +and the regression line's RSS (as a percentage of TSS-RSS for regression +line). The aim is to lower one's score. } \note{ -Requires package \code{manipulate}, available only in RStudio. +Requires package \code{manipulate}, available only in R Studio. } \examples{ \dontrun{ diff --git a/man/Points2Watch.Rd b/man/Points2Watch.Rd index 82d6de8..33831a5 100755 --- a/man/Points2Watch.Rd +++ b/man/Points2Watch.Rd @@ -14,7 +14,7 @@ An app to explore the idea of influence. Note how the influence of the blue poi points in the central cloud increases, and also wanes as the correlation of the central cloud increases. } \note{ -Requires package \code{manipulate}, available only in RStudio. +Requires package \code{manipulate}, available only in R Studio. Uses \code{mvrnorm} from package \code{MASS}. } \examples{ diff --git a/man/SampDist2Means.Rd b/man/SampDist2Means.Rd index 2b05077..c8e9eda 100755 --- a/man/SampDist2Means.Rd +++ b/man/SampDist2Means.Rd @@ -21,7 +21,7 @@ Graphical and numerical output. An app to explore the Central Limit Theorem in the context of the difference of sample means. } \note{ -Uses \code{manipulate} in RStudio. Also requires package \code{lattice}. +Uses \code{manipulate} in R Studio. Also requires package \code{lattice}. } \examples{ \dontrun{ diff --git a/man/SampDistMean.Rd b/man/SampDistMean.Rd index 66e0dba..2cb11cb 100755 --- a/man/SampDistMean.Rd +++ b/man/SampDistMean.Rd @@ -20,7 +20,7 @@ Graphical and numerical output. An app to explore the Central Limit Theorem. } \note{ -Uses \code{manipulate} in RStudio. +Uses \code{manipulate} in R Studio. } \examples{ \dontrun{ diff --git a/man/ShallowReg.Rd b/man/ShallowReg.Rd index b29c238..4588469 100755 --- a/man/ShallowReg.Rd +++ b/man/ShallowReg.Rd @@ -7,22 +7,27 @@ ShallowReg(n=900,rho=0.5) } \arguments{ -\item{n}{Number of points in the scatterplot.} +\item{n}{Number of points in the scatter plot.} -\item{rho}{Target correlation for the scatterplot. Points are selected from a standardized bivariate normal distribtuion, with +\item{rho}{Target correlation for the scatter plot. Points are selected from +a standardized bivariate normal distribution, with correlation rho.} } \value{ Graphical output. } \description{ -The regession line is not as steep as the SD Line (line through point of averages, with slope = sd(y)/sd(x)). The difference -is especially noticeable when the scatterplot is the result of a sample from a bivariate normal distribution. This app explains -why we use the regression line to predict y from x, even though the SD line appears to be a better linear summary of the -scatterplot. Can be used as a starting-point for a discussion of "regression to the mean." +The regression line is not as steep as the SD Line (line +through point of averages, with slope = sd(y)/sd(x)). The difference +is especially noticeable when the scatter plot is the result of a sample +from a bivariate normal distribution. This app explains +why we use the regression line to predict y from x, even though the +SD line appears to be a better linear summary of the +scatter plot. Can be used as a starting-point for a discussion of +"regression to the mean." } \note{ -Uses \code{manipulate}, available only in RStudio, and \code{mvrnorm} from package \code{MASS}. +Uses \code{manipulate}, available only in R Studio, and \code{mvrnorm} from package \code{MASS}. } \examples{ \dontrun{ diff --git a/man/Skewer.Rd b/man/Skewer.Rd index 779f9c7..4cd10a2 100755 --- a/man/Skewer.Rd +++ b/man/Skewer.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/Skewer.R \name{Skewer} \alias{Skewer} -\title{SkewR} +\title{Skewness and Box Plots} \usage{ Skewer() } diff --git a/man/Type12Errors.Rd b/man/Type12Errors.Rd index 9954313..42a1bc5 100755 --- a/man/Type12Errors.Rd +++ b/man/Type12Errors.Rd @@ -12,7 +12,7 @@ Graphical and numerical output. \description{ An app to explore the concepts of Type I and Type II errors, and the concept of power. We take samples from a population that is imagined to be normal, and perform the t-procedures -for one mean. The Null Hypotheis is H0: mu=170. A slider allows us to vary the true mean mu. +for one mean. The Null Hypothesis is H0: mu=170. A slider allows us to vary the true mean mu. } \note{ Uses \code{manipulate}. diff --git a/man/VaryCorrelation.Rd b/man/VaryCorrelation.Rd index bfc9aca..33250cd 100755 --- a/man/VaryCorrelation.Rd +++ b/man/VaryCorrelation.Rd @@ -17,7 +17,7 @@ An app to illustrate the effectiveness of the correlation coefficient as a measu of the strength of a linear relationship. } \note{ -Uses \code{manipulate} in RStudio, and \code{mvrnorm} from package \code{MASS}. +Uses \code{manipulate} in R Studio, and \code{mvrnorm} from package \code{MASS}. } \examples{ \dontrun{ diff --git a/man/alcohol.Rd b/man/alcohol.Rd index ab78200..5a5cd3d 100755 --- a/man/alcohol.Rd +++ b/man/alcohol.Rd @@ -10,7 +10,7 @@ A data frame with 10 observations on the following 4 variables. year.} \item{enrollment}{Full-time equivalent enrollment.} \item{writeups}{Number of write-ups for alcohol violations.} -\item{writeups.per.100}{Number of writeups per 100 students.} } +\item{writeups.per.100}{Number of write-ups per 100 students.} } } \source{ Collected by MAT 111 students as a project. diff --git a/man/attitudes.Rd b/man/attitudes.Rd index 1ff0d1e..f22a13d 100755 --- a/man/attitudes.Rd +++ b/man/attitudes.Rd @@ -11,7 +11,7 @@ A data frame with 268 observations on the following 8 variables. \item{vic.race}{Suggested race of the victim in the survey form.} \item{conc.situation}{Scenario described in the in the "rock concert" question on the survey form.} -\item{sentence}{Sentence, in years, reccommended for the defendant.} +\item{sentence}{Sentence, in years, recommended for the defendant.} \item{conc.decision}{Whether or not the subject chose to buy a ticket (or buy another ticket).} \item{year}{Class rank of the subject.} @@ -36,7 +36,7 @@ Crime: You are on a jury for a manslaughter case in Lewistown, PA. The defendant has been found guilty, and in Pennsylvania it is part of the job of the jury to recommend a sentence to the judge. The facts of the case are as follows. The defendant, Tyrone Marcus Watson, a 35-year old native of -Lewistown, was driving under the influence of alchohol on the evening of +Lewistown, was driving under the influence of alcohol on the evening of Tuesday July 17, 2001. At approximately 11:00 PM Watson drove through a red light, striking a pedestrian, Betsy Brockenheimer, a 20-year old resident of Lewistown. Brockenheimer was taken unconscious to the hospital and died of diff --git a/man/barchartGC.Rd b/man/barchartGC.Rd index d2e094b..5b4c234 100755 --- a/man/barchartGC.Rd +++ b/man/barchartGC.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/barchartGC.R \name{barchartGC} \alias{barchartGC} -\title{Easy Barcharts} +\title{Easy Bar Charts} \usage{ barchartGC(x,data=parent.frame(),type="frequency",flat=FALSE,auto.key=TRUE, horizontal=FALSE,stack=FALSE,...) @@ -16,14 +16,14 @@ argument are searched for in the parent environment.} \item{type}{Possible values are "frequency" and "percent".} -\item{flat}{If set to TRUE, will produce barchart that resembles the layout of \code{xtabs}} +\item{flat}{If set to TRUE, will produce bar chart that resembles the layout of \code{xtabs}} \item{auto.key}{Provides a simple key} -\item{horizontal}{Determines orientation of the bars (overrriden by flat)} +\item{horizontal}{Determines orientation of the bars (overridden by flat)} -\item{stack}{Determines whether bars for tallies are stacked on eac other or placed -next to one another (overrriden by flat)} +\item{stack}{Determines whether bars for tallies are stacked on each other or placed +next to one another (overriden by flat)} \item{...}{other arguments passed to \code{barchart}: these include main, sub, and xlab, which are likely to be familiar to students from other \code{lattice} graphical @@ -32,28 +32,28 @@ pertaining to legends are passed (hopefully anyone interested in such will have to \code{barchart}).} } \value{ -A trellis object describing the barchart. +A trellis object describing the bar chart. } \description{ Wrapper for \code{\link{barchart}} in package \code{lattice}. Creates a -barchart from raw data using formula-data syntax similar to that of \code{\link{xtabs}}, +bar chart from raw data using formula-data syntax similar to that of \code{\link{xtabs}}, or from a table. Defaults to a "standard" -barchart in which the bars are vertical and unstacked. Supports percentage barcharts. +bar chart in which the bars are vertical and un-stacked. Supports percentage bar charts. } \examples{ -#barchart of counts for one factor variable: +#bar chart of counts for one factor variable: barchartGC(~sex,data=m111survey) -#barchart with percentages and title: +#bar chart with percentages and title: barchartGC(~sex,data=m111survey, type="percent", main="Distribution of Sex") -#barchart of counts, to study the relationship between +#bar chart of counts, to study the relationship between #two factor variables: barchartGC(~sex+seat,data=m111survey) -#percentage barchart, two factor variables: +#percentage bar chart, two factor variables: barchartGC(~sex+seat,data=m111survey,type="percent") #From tabulated data: @@ -64,10 +64,10 @@ barchartGC(sexseat,type="percent",main="Sex and Seating Preference") dieTosses <- c(one=8,two=18,three=11,four=7,five=9,six=7) barchartGC(dieTosses,main="60 Rolls of a Die") -# a "flat" barchart, pictorial version of xtabs() +# a "flat" bar chart, pictorial version of xtabs() barchartGC(~sex+seat,data=m111survey,flat=TRUE,ylab="Sex") -# a "flat" barchart, pictorial version of xtabs() +# a "flat" bar chart, pictorial version of xtabs() barchartGC(~sex+seat,data=m111survey,type="percent",flat=TRUE,ylab="Sex") } \author{ diff --git a/man/beans.Rd b/man/beans.Rd index ed211c7..1e703f8 100755 --- a/man/beans.Rd +++ b/man/beans.Rd @@ -9,18 +9,18 @@ A data frame with 15 observations on the following 3 variables. \describe{ \item{Dom}{Number of beans placed into cup with the dominant hand.} \item{NonDom}{Number -of beans placed with the nondominant hand.} -\item{Diff}{Difference in number of beans placed (dominant hand minus nondominant +of beans placed with the non-dominant hand.} +\item{Diff}{Difference in number of beans placed (dominant hand minus non-dominant hand).} } } \source{ -Uts and Heckard, Mind on Statistics, 4th Edition. +Uts and Heckard, Mind on Statistics, Fourth Edition. } \description{ Experiment performed at UC-Davis; fifteen students participated. Each student was asked to place as many beans into a cup as he/she could, in 15 seconds. Each student performed this task once with the dominant hand, and -once with the nondominat hand, but the order of performance was randomized. +once with the non-dominant hand, but the order of performance was randomized. The purpose of the study was to see whether manual dexterity was better for the dominant hand. Terminology: your dominant hand is the hand you use the most. diff --git a/man/cabrera.Rd b/man/cabrera.Rd index 57e0bc5..f3e23b5 100755 --- a/man/cabrera.Rd +++ b/man/cabrera.Rd @@ -15,14 +15,14 @@ is a pitch to Cabrera. \item{speed}{speed of pitch (in mph). (When crossing plate?)} \item{px}{x-coordinate of pitch (in feet, measured from center of plate)} \item{pz}{vertical coordinate of pitch (in feet above plate)} -\item{swung}{Whether or not cabrera swung at the ball. Factor with levels "no", "yes".} +\item{swung}{Whether or not Cabrera swung at the ball. Factor with levels "no", "yes".} \item{hitx}{x-coordinate of landing point of ball (if it was hit). Relative to park.} \item{hity}{y-coordinate of landing point of ball (if it was hit). Relative to park.} \item{hit_outcome}{Outcome when ball was hit. Factor with levels E (error), H (hit), O (batter out).} } } \source{ -Marchi and Albert: Analyziing Baseball Data with R, CRC Press 2014. For +Marchi and Albert: analyzing Baseball Data with R, CRC Press 2014. For more on the PITCHf/x system, see \url{http://en.wikipedia.org/wiki/PITCHf/x}. } \description{ diff --git a/man/chisqtestGC.Rd b/man/chisqtestGC.Rd index 3b1367d..d6868e1 100755 --- a/man/chisqtestGC.Rd +++ b/man/chisqtestGC.Rd @@ -11,7 +11,7 @@ chisqtestGC(x, data = parent.frame(), p = NULL, graph = FALSE, \item{x}{Could be a formula. If so, either ~var (for goodness of fit) or ~var1+var2 (for test for association). Otherwise either a table, matrix or vector of summary data.} -\item{data}{dataframe supplying variables for formula x. If variables in x ar enot found in the data, +\item{data}{dataframe supplying variables for formula x. If variables in x are not found in the data, then they will be searched for in the parent environment.} \item{p}{For goodness of fit, a vector of probabilities. This will be automatically scaled so as to sum @@ -21,7 +21,7 @@ to 1. Negative elements result in an error message.} \item{simulate.p.value}{If FALSE, use a chi-square distribution to estimate the P-value. Other possible values are "random" and "fixed" and TRUE. Random effects are suitable for resampling when the data are a random -sample from a poulation. Fixed effects assume that the values of the explanatory variable (row variable for table, +sample from a population. Fixed effects assume that the values of the explanatory variable (row variable for table, var1 in formula ~var1+var2) remain fixed in resampling, and values of response variable are random with null distribution estimated from the data. When set to TRUE, we implement an equivalent to R's routine. In our view procedure is diff --git a/man/chugtime.Rd b/man/chugtime.Rd index 95dde51..b046f6b 100755 --- a/man/chugtime.Rd +++ b/man/chugtime.Rd @@ -13,7 +13,7 @@ beverage.} } } \source{ -Utts and Heckard, Mind on Statistics, 4th Edition. +Utts and Heckard, Mind on Statistics, Fourth Edition. } \description{ College-aged males chugging a 12-ounce can of a certain beverage. diff --git a/man/colPerc.Rd b/man/colPerc.Rd index e4a1635..e90f9c6 100755 --- a/man/colPerc.Rd +++ b/man/colPerc.Rd @@ -15,7 +15,7 @@ An object of class \code{table}, giving column percentages for the input table. } \description{ -Computes column percentages for a given twoway table. +Computes column percentages for a given two-way table. } \examples{ MyTable <- xtabs(~weather+crowd.behavior,data=ledgejump) diff --git a/man/gcstudents.Rd b/man/gcstudents.Rd index 91e5f2f..dbe5216 100755 --- a/man/gcstudents.Rd +++ b/man/gcstudents.Rd @@ -8,7 +8,7 @@ A data frame with 62 observations on the following 4 variables. \describe{ \item{height}{height of the survey participant, in inches} \item{GPA}{grade-point average} -\item{enough_Sleep}{Does the particpant feel that he/she gets enough sleep?} +\item{enough_Sleep}{Does the participant feel that he/she gets enough sleep?} \item{sex}{sex of the survey participant} } } diff --git a/man/gss02.Rd b/man/gss02.Rd index cfed4b8..08e32d0 100755 --- a/man/gss02.Rd +++ b/man/gss02.Rd @@ -38,7 +38,7 @@ gunlaws.} } \source{ National Opinion Research Center: \url{http://www3.norc.org/gss+website/}. -Found in Uts and Heckard: Mind on Statistics, 4th Edition. +Found in Uts and Heckard: Mind on Statistics, Fourth Edition. } \description{ The General Social Survey (GSS) is a nationwide poll that has been conducted diff --git a/man/gss08.Rd b/man/gss08.Rd index f27e032..c399c62 100755 --- a/man/gss08.Rd +++ b/man/gss08.Rd @@ -23,7 +23,7 @@ numeric vector} \item{marijuan}{a factor with levels \code{Legal} } \source{ National Opinion Research Center: \url{http://www3.norc.org/gss+website/}. -Found in Uts and Heckard: Mind on Statistics, 4th Edition. +Found in Uts and Heckard: Mind on Statistics, Fourth Edition. } \description{ General Social Survey, 2008 diff --git a/man/handheight.Rd b/man/handheight.Rd index c85895d..2bbdd95 100755 --- a/man/handheight.Rd +++ b/man/handheight.Rd @@ -13,7 +13,7 @@ A data frame with 167 observations on the following 3 variables. } } \source{ -Uts and Heckard, Mind on Statistics, 4th Edition. +Uts and Heckard, Mind on Statistics, Fourth Edition. } \description{ Height and handspan of a few subjects. diff --git a/man/hanford1.Rd b/man/hanford1.Rd index 393e986..77ca848 100755 --- a/man/hanford1.Rd +++ b/man/hanford1.Rd @@ -3,7 +3,7 @@ \docType{data} \name{hanford1} \alias{hanford1} -\title{Handford Weather Station, 1984-2010} +\title{Hanford Weather Station, 1984-2010} \format{ A data frame with 27 observations on the following 2 variables. \describe{ diff --git a/man/hofbatting.Rd b/man/hofbatting.Rd index 063c13f..c568c5c 100755 --- a/man/hofbatting.Rd +++ b/man/hofbatting.Rd @@ -29,7 +29,7 @@ Integration, (1941-1959), Expansion (1960-1975), Free Agency (1976-1992), Long B \item{HR}{Home runs} \item{HR.Rate}{Number of home runs divided by number of times at bat} \item{RBI}{Runs batted in} -\item{SB}{Number of succesful stolen base attempts} +\item{SB}{Number of successful stolen base attempts} \item{CS}{Number of times thrown out while attempting to steal a base} \item{BB}{Base on Balls (number of times "walked")} \item{SO}{Number of times struck out} @@ -40,7 +40,7 @@ Integration, (1941-1959), Expansion (1960-1975), Free Agency (1976-1992), Long B } } \source{ -Modified from Marchi and Albert: Analyziing Baseball Data with R, CRC Press 2014. +Modified from Marchi and Albert: analyzing Baseball Data with R, CRC Press 2014. } \description{ Data on the 147 batters inducted into the Major LeagueBaseball Hall of Fame diff --git a/man/hofpitching.Rd b/man/hofpitching.Rd index 36bf191..08d6983 100755 --- a/man/hofpitching.Rd +++ b/man/hofpitching.Rd @@ -43,7 +43,7 @@ Integration, (1941-1959), Expansion (1960-1975), Free Agency (1976-1992), Long B } } \source{ -Modified from Marchi and Albert: Analyziing Baseball Data with R, CRC Press 2014. +Modified from Marchi and Albert: analyzing Baseball Data with R, CRC Press 2014. } \description{ Data on the 70 pitchers inducted into the Major League Baseball Hall of Fame diff --git a/man/imagpop.Rd b/man/imagpop.Rd index 061c3cb..64fe556 100755 --- a/man/imagpop.Rd +++ b/man/imagpop.Rd @@ -17,7 +17,7 @@ An imaginary population, used for instructional purposes. The variables are as \item cappun. Opinion about the death penalty (favor, oppose). \item height. Height in inches. \item idealheight. The height you would like to be, in inches. - \item diff. Idealheight - actual height. + \item diff. ideal height - actual height. \item kkardashtemp. Your feelings about Kim Kardashian on a 0-100 scale (0=very cold, 100=very warm). } } diff --git a/man/knifeorgunblock.Rd b/man/knifeorgunblock.Rd index 0d9ed1e..64dd22e 100755 --- a/man/knifeorgunblock.Rd +++ b/man/knifeorgunblock.Rd @@ -8,7 +8,7 @@ A data frame with 20 observations on the following 3 variables. \describe{ \item{hoghollerer}{a factor with levels \code{no} -\code{yes} whether or not the subject competes in hog-hollerin' contests} +\code{yes} whether or not the subject competes in hog-hollering contests} \item{means}{a factor with levels \code{gun} \code{knife} means by which subject is slain} \item{volume}{volume of expiring subject's cries.} diff --git a/man/ledgejump.Rd b/man/ledgejump.Rd index e3800d3..81ac8ae 100755 --- a/man/ledgejump.Rd +++ b/man/ledgejump.Rd @@ -10,7 +10,7 @@ A data frame with 21 rows and 2 variables \source{ "The baiting crowd in episodes of threatened suicide", \emph{Journal of Personality and Social Psychology}, 41, 703-709. See also dataset 59 in -\emph{A Handbook of Small Datasets} by Hand et. al. See also \url{http://www.ncbi.nlm.nih.gov/pubmed/7288565}. +\emph{A Handbook of Small Datasets} by Hand et al. See also \url{http://www.ncbi.nlm.nih.gov/pubmed/7288565}. } \description{ A dataset recreated from summary data describing the relationship between weather and crowd behavior during 21 recorded diff --git a/man/lmGC.Rd b/man/lmGC.Rd index 0db7ea3..aecf6d7 100755 --- a/man/lmGC.Rd +++ b/man/lmGC.Rd @@ -12,7 +12,7 @@ lmGC(form,data=parent.frame(),graph=FALSE,check=FALSE) \item{data}{dataframe supplying y and x above. If one or more of the variables is not in data, then they will be searched for in the parent environment.} -\item{graph}{Produce scatterplot with fitted ploynomial, together with prediction standard error bands} +\item{graph}{Produce scatterplot with fitted polynomial, together with prediction standard error bands} \item{check}{Asks to produce a lowess or gam curve with approximate 95%-confidence band. If the fitted line wanders outside the band, then perhaps a linear fit is not appropriate.} diff --git a/man/nonresponse.Rd b/man/nonresponse.Rd index fae407a..174009f 100755 --- a/man/nonresponse.Rd +++ b/man/nonresponse.Rd @@ -6,14 +6,16 @@ \title{Non-Response to Surveys} \format{ A data frame with 4229 observations on the following 3 variables. -\describe{ \item{residence}{where the subject resides: either in Copenhagen, a city outside of Copenhagen, or +\describe{ \item{residence}{where the subject resides: either in Copenhagen, +a city outside of Copenhagen, or in the countryside} \item{gender}{sex of the subject} -\item{response}{Whether or not eh subject responded to the mail survey}} +\item{response}{Whether or not the subject responded to the mail survey}} } \source{ Rebuilt from a contingency table in E. B. Andersen (1991), -The Statistical Analysis of Categorical Data. 2nd edition. Springer-Verlag, Berlin. Table found in +The Statistical Analysis of Categorical Data, Second Edition. Springer-Verlag, +Berlin. Table found in package \code{vcd}. } \description{ diff --git a/man/nosmokeday.Rd b/man/nosmokeday.Rd index d9a5e46..60a531f 100755 --- a/man/nosmokeday.Rd +++ b/man/nosmokeday.Rd @@ -13,7 +13,7 @@ National No Smoke Day in the United Kingdom} National No Smoke Day in the United Kingdom}} } \source{ -J. Knwles, "Nicotine withdrawal and road accidents", Science, 400, 128, (8 July 1999). +J. Knowles, "Nicotine withdrawal and road accidents", Science, 400, 128, (8 July 1999). Found in Whitlock and Schluter, The Analysis of Biological Data. } \description{ diff --git a/man/pennstate1.Rd b/man/pennstate1.Rd index 93a144a..6f03f3f 100755 --- a/man/pennstate1.Rd +++ b/man/pennstate1.Rd @@ -28,7 +28,7 @@ which letter was presented first on the form.} } } \source{ -Uts and Heckard, Mind on Statistics, 4th Edition. +Uts and Heckard, Mind on Statistics, Fourth Edition. } \description{ A study of students at Penn State University. diff --git a/man/plot.GClm.Rd b/man/plot.GClm.Rd index 9a31789..8e6b238 100755 --- a/man/plot.GClm.Rd +++ b/man/plot.GClm.Rd @@ -12,7 +12,7 @@ \item{\ldots}{ignored} } \value{ -two diagmostic plots +two diagnostic plots } \description{ Used by generic plot function diff --git a/man/plot.polyGC.Rd b/man/plot.polyGC.Rd index 16e51af..cdfdd8f 100755 --- a/man/plot.polyGC.Rd +++ b/man/plot.polyGC.Rd @@ -12,7 +12,7 @@ \item{\ldots}{ignored} } \value{ -two diagmostic plots +two diagnostic plots } \description{ Used by generic plot function diff --git a/man/pnormGC.Rd b/man/pnormGC.Rd index a54b5b6..1a4d87f 100755 --- a/man/pnormGC.Rd +++ b/man/pnormGC.Rd @@ -7,7 +7,8 @@ pnormGC(bound,region="below",mean=0,sd=1,graph=FALSE) } \arguments{ -\item{bound}{A numerical vector of length 1 or 2, indicating boundary(ies) of shaded region on horizontal axis} +\item{bound}{A numerical vector of length 1 or 2, indicating the boundary +(respectively, boundaries) of shaded region on the bhorizontal axis} \item{region}{A character string. Default is "below". Possible values are "between" (when boundary consists of two numbers), "below", "above", and "outside" (again when boundary consists of two numbers)} diff --git a/man/polyfitGC.Rd b/man/polyfitGC.Rd index 3f4acf1..b376be4 100755 --- a/man/polyfitGC.Rd +++ b/man/polyfitGC.Rd @@ -14,7 +14,7 @@ they will be searched for in the parent environment.} \item{degree}{desired degree of polynomial (for degree 1 use lmgC)} -\item{graph}{Produce scatterplot with fitted ploynomial.} +\item{graph}{Produce scatterplot with fitted polynomial.} \item{check}{Asks to produce a lowess or gam curve with approximate 95%-confidence band. If the fitted line wanders outside the band, then perhaps a linear fit is not appropriate.} diff --git a/man/ptGC.Rd b/man/ptGC.Rd index 4be8b9e..89bdb39 100755 --- a/man/ptGC.Rd +++ b/man/ptGC.Rd @@ -7,7 +7,8 @@ ptGC(bound,region="between",df=1,graph=FALSE) } \arguments{ -\item{bound}{A numerical vector of length 1 or 2, indicating boundary(ies) of shaded region on horizontal axis} +\item{bound}{A numerical vector of length 1 or 2, indicating the boundary +(respectively, boundaries) of shaded region on horizontal axis} \item{region}{A character string. Possible values are "between" (when boundary consists of two numbers), "below", "above", and "outside" (again when boundary consists of two numbers)} diff --git a/man/pushups.Rd b/man/pushups.Rd index ecd50db..644569e 100755 --- a/man/pushups.Rd +++ b/man/pushups.Rd @@ -3,13 +3,13 @@ \docType{data} \name{pushups} \alias{pushups} -\title{Pushups by Football Players at Georgetown College} +\title{Push-ups by Football Players at Georgetown College} \format{ A data frame with 30 observations on the following 3 variables. \describe{ \item{weight}{weight of subject in pounds.} -\item{pushups}{number of pushups +\item{pushups}{number of push-ups completed.} \item{position}{a factor with levels \code{LINE} \code{SKILL}: type of position played by the subject. Line positions @@ -20,7 +20,7 @@ require high body mass, skill positions require a lot of running around.} MAT 111, Georgetown College } \description{ -Two football players at GC asked their team-mates to do as many pushups as +Two football players at GC asked their team-mates to do as many push-ups as they could in two minutes. } \keyword{datasets} diff --git a/man/qnormGC.Rd b/man/qnormGC.Rd index 9ebcf0a..3ccb3f0 100755 --- a/man/qnormGC.Rd +++ b/man/qnormGC.Rd @@ -11,7 +11,7 @@ qnormGC(area,region="below",mean=0,sd=1,graph=FALSE) \item{region}{A character string. Default is "below". Other possible values are "between" (when known area is symmetric around the mean two numbers), -"below", "above", and "outside" (when knonw area is outside a region symmetric around the mean)} +"below", "above", and "outside" (when known area is outside a region symmetric around the mean)} \item{mean}{Mean of the distribution} @@ -23,7 +23,7 @@ qnormGC(area,region="below",mean=0,sd=1,graph=FALSE) Numerical value of the percentile, and a vector when there are two bounds. } \description{ -When you know a certain area under a normal denisity durve, this function returns +When you know a certain area under a normal density curve, this function returns the x-axis values of the boundary of that area. } \examples{ diff --git a/man/rowPerc.Rd b/man/rowPerc.Rd index 588eb4d..92661e7 100755 --- a/man/rowPerc.Rd +++ b/man/rowPerc.Rd @@ -15,7 +15,7 @@ An object of class \code{table}, giving row percentages for the input table. } \description{ -Computes row percentages for a given twoway table. +Computes row percentages for a given two-way table. } \examples{ data(ledgejump) diff --git a/man/sealsO2.Rd b/man/sealsO2.Rd index 9421c39..bc397cf 100755 --- a/man/sealsO2.Rd +++ b/man/sealsO2.Rd @@ -3,7 +3,7 @@ \docType{data} \name{sealsO2} \alias{sealsO2} -\title{Weddell Seal Oxygen Consumptions} +\title{Weddell Seal Oxygen Consumption} \format{ A data frame with 10 observations on the following 2 variables. \describe{ \item{o2.nonfeeding}{Oxygen consumption during recovery time after a dive during which diff --git a/man/temperature.Rd b/man/temperature.Rd index 8a589cb..4738990 100755 --- a/man/temperature.Rd +++ b/man/temperature.Rd @@ -8,7 +8,7 @@ A data frame with 20 observations on 5 variables. } \source{ -Mind on Statistics, 4th edition, Uts and Heckard. +Mind on Statistics, Fourth Edition, Uts and Heckard. } \description{ Average temperatures for cities in the United States. diff --git a/man/theme.rpres.Rd b/man/theme.rpres.Rd index b891c7f..127c873 100755 --- a/man/theme.rpres.Rd +++ b/man/theme.rpres.Rd @@ -12,7 +12,7 @@ Returns a list to be supplied as the \code{theme} to the \code{lattice} function } \description{ Modifies the current theme for use with lattice graphics in R Presentation dicuments. Increases size of title, - axis lables and axis numbers, thickens sone lines, etc. + axis lables and axis numbers, thickens some lines, etc. } \note{ Deprecated in favor of \code{themerpres()}. May not appear in future versions. diff --git a/man/themerpres.Rd b/man/themerpres.Rd index 8e73f03..0cc84fb 100755 --- a/man/themerpres.Rd +++ b/man/themerpres.Rd @@ -12,7 +12,7 @@ Returns a list to be supplied as the \code{theme} to the \code{lattice} function } \description{ Modifies the current theme for use with lattice graphics in R Presentation dicuments. Increases size of title, - axis lables and axis numbers, thickens sone lines, etc. + axis lables and axis numbers, thickens some lines, etc. } \examples{ trellis.par.set(theme=themerpres()) diff --git a/man/tornado.Rd b/man/tornado.Rd index 0ec1e49..32bf4bd 100755 --- a/man/tornado.Rd +++ b/man/tornado.Rd @@ -15,7 +15,7 @@ Tornado damage in the U.S., by state. Also includes Puerto Rico. \itemize{ \item{\code{state}} {the state} -\item{\code{damage}} {mean annual damage from tornados, over a five-year period, in millions of dollars} +\item{\code{damage}} {mean annual damage from tornadoes, over a five-year period, in millions of dollars} } } \keyword{datasets} diff --git a/man/ucdavis1.Rd b/man/ucdavis1.Rd index 6412896..3ae5c48 100755 --- a/man/ucdavis1.Rd +++ b/man/ucdavis1.Rd @@ -8,7 +8,7 @@ A data frame with 173 observations on 12 variables.. } \source{ -Mind on Statistics, 4th edition, Uts and Heckard. +Mind on Statistics, Fourth Edition, Uts and Heckard. } \description{ Results of a survey of students at UC-Davis. diff --git a/man/verlander.Rd b/man/verlander.Rd index 9b135ae..ff20617 100755 --- a/man/verlander.Rd +++ b/man/verlander.Rd @@ -27,7 +27,7 @@ movement. Measured at 40 feet from home plate.} } } \source{ -Marchi and Albert: Analyziing Baseball Data with R, CRC Press 2014. For +Marchi and Albert: analyzing Baseball Data with R, CRC Press 2014. For more on the PITCHf/x system, see \url{http://en.wikipedia.org/wiki/PITCHf/x}. } \description{ diff --git a/man/youthrisk03.Rd b/man/youthrisk03.Rd index 0327fea..df181d4 100755 --- a/man/youthrisk03.Rd +++ b/man/youthrisk03.Rd @@ -8,7 +8,7 @@ A data frame with 3042 observations on 7 variables. } \source{ -Mind on Statistics, 4th Edition, by Uts and Heckard. +Mind on Statistics, Fourth Edition, by Uts and Heckard. } \description{ A Study of Risky Behaviors in High School Seniors, from year 2003. diff --git a/man/ostrichtemp.Rd b/usefulInfo/ostrichtemp.Rd similarity index 93% rename from man/ostrichtemp.Rd rename to usefulInfo/ostrichtemp.Rd index 5270b90..dd6a905 100755 --- a/man/ostrichtemp.Rd +++ b/usefulInfo/ostrichtemp.Rd @@ -1,7 +1,7 @@ \docType{data} \name{ostrichtemp} \alias{ostrichtemp} -\title{Body and Brasin Temperatures of Ostriches} +\title{Body and Brain Temperatures of Ostriches} \format{A data frame with 6 observations on the following 2 variables. \describe{ \item{body.temp}{carotid arterial blood temperature of the ostrich (degrees Centigrade).} \item{brain.temp}{brain temperature (near hypothalumus) of the ostrich (degrees Centigrade).}}}