Learn R Programming

s20x

A repository for the University of Auckland s20x R library. This library is used in our large undergrad classes STATS 201, STATS 208 and BIOSCI 209

Build Notes

We will attempt to add information about the changes in each new release (whether it makes it to CRAN or not) here, from version 3.1-21 onwards

3.1-21

Ben Stevenson added some code to summary2way so the attribute information from TukeyHSD is preserved. That is so you see this

> summary2way(fit, page = "interaction")
  Tukey multiple comparisons of means
    95% family-wise confidence level

Fit: aov(formula = fit)

$`store:crust`

instead of this

> summary2way(fit, page = "interaction")
$`store:crust`

3.1-24

A new function called modcheck has been added. This allows the plotting of all four standard 20x model checking plots: a pred-res or equality of variance plot, a normal Q-Q plot, a histogram of the residuals, and a Cook's distance plot, to be drawn on the same plot at once. This function needed a much more flexible version of normcheck, and needed modifications to eovcheck and cooks20x. I have not put it on CRAN yet because of the chance that it will fail for our current students. We really need some unit testing in this package so that this process can be sped up.

Copy Link

Version

Install

install.packages('s20x')

Monthly Downloads

817

Version

3.1-40

License

GPL-2 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

August 21st, 2023

Functions in s20x (3.1-40)

diamonds.df

Prices and Weights of Diamonds
cooks20x

Cook's distance plot
displayPairs

Display within-level pairwise comparisons for saturated two-way ANOVA model.
freq1way

Analysis of 1-dimensional frequency tables
modelcheck

Model checking plots Compact layout for model checking plots.
layout20x

Layout
fruitfly.df

Fruitfly Data
levene.test

Levene test for the ANOVA Assumption
eovcheck

Testing for equality of variance plot
mozart.df

Length of Mozart's Movements
course.df

Stats 20x Summer School Data
estimateContrasts

Contrast Estimates
mergers.df

Merger Days
pairs20x

Pairwise Scatter Plots with Histograms and Correlations
modcheck

Model checking plots
oysters.df

Oyster Abundances over Different Sites
incomes.df

Mean Family Incomes
fire.df

Fire Damage and Distance from the Fire Station
computer.df

Computer Questionnaire
larain.df

Los Angeles Rainfall
skewness

Skewness Statistic
peru.df

Peruvian Indians
skulls.df

Skulls Data
thyroid.df

Effect of a New Drug on Thyroid Weights
toothpaste.df

Crest Toothpaste
getVersion

s20x pacakge version number
multipleComp

Multiple Comparisons
interactionPlots

Interactions Plot for Two-way Analysis of Variance
lakemary.df

Ages and Lengths of Lake Mary Bluegills
predictGLM

Predictions for Generalized Linear Models
predictCount

Predicted Counts for a Generalized Linear Model
rowdistr

Row distributions from a cross-tabulation of two variables
mazda.df

Year and Price of Mazda Cars
snapper.df

Snapper Weight Data
soyabean.df

Soya Bean Yields
nail.df

Nail Polish Data
house.df

Sale and Advertised Prices of Houses
predict20x

Model Predictions for a Linear Model
seeds.df

Seeds Data
sheep.df

Sheep Data
technitron.df

Technitron Salary Information
teach.df

Comparison of Three Teaching Methods
rr

Read Data
rain.df

Cloud Seeding and Levels of Rainfall
stripqq

Strip charts and normal quantile-quantile plots
residPlot

Fitted values versus residuals plot
summary1way

One-way Analysis of Variance Summary
propslsd.new

LSD-Display Intervals
normcheck

Testing for normality plot
trendscatter

Trend and scatter plot
mening.df

Monthly Notifications of Meningococcal Disease
zoo.df

Zoo Attendance during an Advertising Campaign
onewayPlot

One-way Analysis of Variance Plot
s20x-package

s20x: Functions for University of Auckland Course STATS 201/208 Data Analysis
summaryStats

Summary Statistics
summary2way

Two-way Analysis of Variance Summary
body.df

Body Image and Ethnicity
ciReg

Confidence Intervals for Regression models
arousal.df

Changes in Pupil Size with Emotional Arousal
camplake.df

Age and Length of Camp Lake Bluegills
chalk.df

Chalk Data
crosstabs

Crosstabulation of two variables
beer.df

US Beer Production
crossFactors

Crossed Factors
course2way.df

Exam Mark, Gender and Attendance for Stats 20x Summer School Students
books.df

Books Data
apples.df

Apples Data
butterfat.df

Butterfat Data
boxqq

Box plots and normal quantile-quantile plots
autocorPlot

Autocorrelation Plot
airpass.df

International Airline Passengers
bursary.df

Bursary Results for Auckland Secondary Schools