# MASS

> R functions and datasets from Venables and Ripley's Modern Applied Statistics with S

Source: https://talira.ai/catalog/mass-gsn76se7
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics)
- Licence: GPL-2.0-only OR GPL-3.0-only[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Brian Ripley](https://talira.ai/orgs/brian-ripley.md)

MASS is the R package of functions and datasets that accompany W. N. Venables and B. D. Ripley's book Modern Applied Statistics with S (4th edition, 2002): robust and resistant regression, negative binomial and ordered logistic models, linear and quadratic discriminant analysis, stepwise model selection, fitting distributions and the book's datasets. Its companion packages from the same authors are nnet, for feed-forward neural networks and multinomial log-linear models, and class, for k-nearest-neighbour classification, learning vector quantization and self-organizing maps. All three are recommended packages that come with every R installation, published on CRAN and maintained by Brian Ripley.

## Links

- Website: https://www.stats.ox.ac.uk/pub/MASS4/
- Docs: https://cran.r-project.org/web/packages/MASS/MASS.pdf

## Problems it solves

- fit a negative binomial regression to overdispersed count data in R
- run linear discriminant analysis on my dataset in R
- fit a regression that isn't thrown off by outliers in R
- choose the variables for my linear model by AIC step by step

## Features

- robust regression (rlm) and resistant regression (lqs)
- negative binomial GLMs (glm.nb) and ordered logistic or probit regression (polr)
- linear and quadratic discriminant analysis (lda, qda)
- stepwise model selection by AIC (stepAIC) and Box-Cox transformations
- maximum-likelihood fitting of distributions (fitdistr)
- the datasets used in the book
- companion packages: nnet (neural networks, multinomial models) and class (k-NN, LVQ, SOM)

## Trust

Overall: 0.37 out of 1.
Signals: maintenance 0.45, adoption 0.70, backing 0.30, extensibility 0.00.

- latest package release 3 months ago (CRAN nnet 7.3-21)
- packages released for 17 years
- 425k package downloads a month (CRAN)
- backed by Brian Ripley

## Alternatives

- [robustbase](https://talira.ai/catalog/robustbase-r425zwz1.md): Essential robust statistics for R

## Sources

[^1]: https://cran.r-project.org/web/packages/MASS/index.html (checked 24 Nov 2026)
