R functions and datasets from Venables and Ripley's Modern Applied Statistics with S
open sourceGPL-2.0-only OR GPL-3.0-onlyfree
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.
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)
Alternatives
The same job
These do what MASS does.
- robustbase Essential robust statistics for R