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

758

Version

3.2.1

License

GPL-2 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

James Curran

Last Published

December 17th, 2025

Functions in s20x (3.2.1)

course.df

Stats 20x Summer School Data
casestudy

Render a case study to HTML
crossFactors

Crossed Factors
computer.df

Computer Questionnaire
cooks20x

Cook's distance plot
course2way.df

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

Age and Length of Camp Lake Bluegills
house.df

Sale and Advertised Prices of Houses
crosstabs

Crosstabulation of two variables
incomes.df

Mean Family Incomes
ciReg

Confidence Intervals for Regression models
freq1way

Analysis of 1-dimensional frequency tables
layout20x

Layout
larain.df

Los Angeles Rainfall
estimateContrasts

Contrast Estimates
fire.df

Fire Damage and Distance from the Fire Station
levene.test

Levene test for the ANOVA Assumption
listCaseStudies

List available case studies
nail.df

Nail Polish Data
predict20x

Model Predictions for a Linear Model
predictCount

Predicted Counts for a Generalized Linear Model
multipleComp

Multiple Comparisons
modelcheck

Model checking plots Compact layout for model checking plots.
propslsd.new

LSD-Display Intervals
predictGLM

Predictions for Generalized Linear Models
displayPairs

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

s20x: Functions for University of Auckland Course STATS 201/208 Data Analysis
seeds.df

Seeds Data
mozart.df

Length of Mozart's Movements
diamonds.df

Prices and Weights of Diamonds
mening.df

Monthly Notifications of Meningococcal Disease
soyabean.df

Soya Bean Yields
peru.df

Peruvian Indians
pairs20x

Pairwise Scatter Plots with Histograms and Correlations
mazda.df

Year and Price of Mazda Cars
mergers.df

Merger Days
modcheck

Model checking plots
rain.df

Cloud Seeding and Levels of Rainfall
stripqq

Strip charts and normal quantile-quantile plots
openCaseStudy

Open a case study source file in the editor
zoo.df

Zoo Attendance during an Advertising Campaign
fruitfly.df

Fruitfly Data
summary1way

One-way Analysis of Variance Summary
summary2way

Two-way Analysis of Variance Summary
interactionPlots

Interactions Plot for Two-way Analysis of Variance
getVersion

s20x pacakge version number
summaryStats

Summary Statistics
sheep.df

Sheep Data
residPlot

Fitted values versus residuals plot
rr

Read Data
trendscatter

Trend and scatter plot
teach.df

Comparison of Three Teaching Methods
toothpaste.df

Crest Toothpaste
oysters.df

Oyster Abundances over Different Sites
rowdistr

Row distributions from a cross-tabulation of two variables
normcheck

Testing for normality plot
onewayPlot

One-way Analysis of Variance Plot
skewness

Skewness Statistic
technitron.df

Technitron Salary Information
thyroid.df

Effect of a New Drug on Thyroid Weights
skulls.df

Skulls Data
lakemary.df

Ages and Lengths of Lake Mary Bluegills
snapper.df

Snapper Weight Data
books.df

Books Data
airpass.df

International Airline Passengers
bursary.df

Bursary Results for Auckland Secondary Schools
arousal.df

Changes in Pupil Size with Emotional Arousal
autocorPlot

Autocorrelation Plot
apples.df

Apples Data
body.df

Body Image and Ethnicity
beer.df

US Beer Production
eovcheck

Testing for equality of variance plot
butterfat.df

Butterfat Data
chalk.df

Chalk Data
boxqq

Box plots and normal quantile-quantile plots