Support Functions and Datasets for Venables and Ripley's MASS
2,178packages dependsuggested by 796
2.1Mdownloads / year
35.8%test coverage
12/13flavors OK
Overview
About
Functions and datasets to support Venables and Ripley, "Modern Applied Statistics with S" (4th edition, 2002).
Install
Health
CRAN checks
1ERROR12OK
Check messages
ERRORexamplesr-devel-linux-x86_64-debian-gcc
Running examples in ‘MASS-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: motors
> ### Title: Accelerated Life Testing of Motorettes
> ### Aliases: motors
> ### Keywords: datasets
>
> ### ** Examples
>
> library(survival)
> plot(survfit(Surv(time, cens) ~ factor(temp), motors), conf.int = FALSE)
> # fit Weibull model
> motor.wei <- survreg(Surv(time, cens) ~ temp, motors)
> ## IGNORE_RDIFF_BEGIN
> summary(motor.wei)
Call:
survreg(formula = Surv(time, cens) ~ temp, data = motors)
Value Std. Error z p
(Intercept) 16.31852 0.62296 26.2 < 2e-16
temp -0.04531 0.00319 -14.2 < 2e-16
Log(scale) -1.09564 0.21480 -5.1 3.4e-07
Scale= 0.334
Weibull distribution
Loglik(model)= -147.4 Loglik(intercept only)= -169.5
Chisq= 44.32 on 1 degrees of freedom, p= 2.8e-11
Number of Newton-Raphson Iterations: 8
n= 40
> ## IGNORE_RDIFF_END
> # and predict at 130C
> unlist(predict(motor.wei, data.frame(temp=130), se.fit = TRUE))
fit.1 se.fit.1
33813.06 7506.36
>
> motor.cox <- coxph(Surv(time, cens) ~ temp, motors)
> summary(motor.cox)
Call:
coxph(formula = Surv(time, cens) ~ temp, data = motors)
n= 40, number of events= 17
coef exp(coef) se(coef) z Pr(>|z|)
temp 0.09185 1.09620 0.02736 3.358 0.000786 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
exp(coef) exp(-coef) lower .95 upper .95
temp 1.096 0.9122 1.039 1.157
Concordance= 0.84 (se = 0.035 )
Likelihood ratio test= 25.56 on 1 df, p=4e-07
Wald test = 11.27 on 1 df, p=8e-04
Score (logrank) test = 22.73 on 1 df, p=2e-06
> # predict at temperature 200
> plot(survfit(motor.cox, newdata = data.frame(temp=200),
+ conf.type = "log-log"))
Error in a$specials[[i]] : subscript out of bounds
Calls: plot ... survfit.coxph -> model.matrix.coxph -> delete.response -> off
Execution haltedSlowest check: 4.2 min · r-devel-windows-x86_64
Status changes
- ERROR12 OK, 1 ERROR2026-10-24
- OK13 OK2026-10-20
- NOTE12 OK, 1 NOTE2026-10-17
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
Show 19 earlier changesHide 19 earlier changes
- OK13 OK2026-09-04
- NOTE12 OK, 1 NOTE2026-08-31
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-19
- NOTE11 OK, 2 NOTE2026-07-16
- OK13 OK2026-06-27
- ERROR12 OK, 1 ERROR2026-06-24
- OK13 OK2026-05-11
- ERROR12 OK, 1 ERROR2026-05-10
- OK13 OK2026-04-30
- ERROR12 OK, 1 ERROR2026-04-28
- OK14 OK2026-04-24
- ERROR13 OK, 1 ERROR2026-04-22
- OK14 OK2026-04-18
- ERROR13 OK, 1 ERROR2026-04-16
- OK14 OK2026-03-31
- ERROR13 OK, 1 ERROR2026-03-28
- OK14 OK2026-03-10
Advisories
Documentation
In release 7.3-66
- Help pages
- 155 (2 internal)
- Examples that run
- 100%79 run in a plain check
- Exported functions with examples
- 77%
- Documented parameters
- 88%
- Return-value docs
- 91%
- Help pages citing references
- 82%
Downloads
2.1M
CRAN downloads in the past year
Rank #221 · ~5.7K/day · ~173.5K/mo
Daily download trend is not available in this view yet.
245.9K30 days
641.5K90 days
2.1M1 year
Also on102.4K r2u5.1K autocran1.5M conda_forge5.2K c2d4u
Dependencies
Declared dependencies
0 external dependencies (excludes base and recommended)
Installing MASS adds no packages beyond those that come with R.
Depends (5)
R >= 4.4.0grDevicesgraphicsstatsutils
Imports (1)
methods
LinkingTo (0)
none
Suggests (4)
latticenlmennetsurvival
Enhances (0)
none
Reverse dependencies
2,178direct
3,908indirect
Depends 312 · Imports 1,866
Suggested by 796
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
Depends, Imports or LinkingTo, most downloaded first
lme4carquantregdoBypbkrtestveganTH.dataipredsignalFactoMineRggforcelmerTestordinallavaanggiraphggraphDescToolsSeuratjomobbmlefitdistrplussegmentedvcdvarslatticeExtraade4RTMBsctransformplmagricolaeseriationarmfBasicspsclGeneralizedHyperbolicgmodelsrmsmodeldataadegenetphytoolsclusterGenerationRcmdrMiscMCMCpackgeepackellipticEnvStatssemmediation
and 2,130 more dependents and 796 packages that suggest it on CRAN ↗
Code & Tests
Datasets
People & History
People (6)
Author, Maintainer since 7.3-0 (2009), Copyright holder
Author, Copyright holder · added in 7.3-20
Contributor
Listed in earlier versions (4)
Show 4 peopleHide 4 people
no longer listed · 7.3-0 to 7.3-8
Venables
no longer listed · 7.3-0 to 7.3-16
Albrecht Gebhardt around 1998.
no longer listed · 7.3-9 to 7.3-16
Douglas M.
no longer listed · 7.3-27 to 7.3-66
Releases (78)
Pick two releases to compare their code metrics.
- 7.3-66Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 7.3-652025-02-28 · diff ↗
- 7.3-642025-01-04 · diff ↗
- 7.3-632025-01-01 · diff ↗
- 7.3-612024-06-13 · diff ↗
- 7.3-60.22024-04-26 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 7.3-60.12023-07-14 · diff ↗
- 7.3-60.0.12024-01-13 · diff ↗
- 7.3-602023-05-04 · diff ↗
- 7.3-592023-04-21 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 7.3-58.42023-04-04 · diff ↗
- 7.3-58.32023-03-07 · diff ↗
Show 83 earlier eventsHide 83 earlier events
- 7.3-58.2
- 7.3-58.12022-08-03 · diff ↗
- 7.3-582022-07-14 · diff ↗
- 7.3-57.12022-05-30 · diff ↗
- 7.3-572022-04-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 7.3-562022-03-23 · diff ↗
- 7.3-552022-01-13 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 7.3-542021-05-03 · diff ↗
- 7.3-53.12021-02-12 · diff ↗
- 7.3-532020-09-09 · diff ↗
- 7.3-522020-08-18 · diff ↗
- 7.3-51.62020-04-26 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 7.3-51.52019-12-20 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 7.3-51.42019-03-31 · diff ↗
- 7.3-51.32019-03-31 · diff ↗
- 7.3-51.22019-03-01 · diff ↗
- 7.3-51.12018-11-01 · diff ↗
- 7.3-512018-10-16 · diff ↗
- 7.3-502018-04-30 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 7.3-492018-02-23 · diff ↗
- 7.3-482017-12-25 · diff ↗
- 7.3-472017-04-21 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 7.3-462017-02-14 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 7.3-452016-04-21 · diff ↗
- 7.3-442015-08-30 · diff ↗
- 7.3-432015-07-16 · diff ↗
- 7.3-422015-07-02 · diff ↗
- 7.3-412015-06-18 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 7.3-402015-03-21 · diff ↗
- 7.3-392015-02-24 · diff ↗
- 7.3-38
- 7.3-372015-01-10 · diff ↗
- 7.3-362015-01-04 · diff ↗
- 7.3-352014-09-30 · diff ↗
- 7.3-342014-08-21 · diff ↗
- 7.3-332014-05-05 · diff ↗
- 7.3-322014-04-27 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 7.3-312014-03-28 · diff ↗
- 7.3-302014-03-08 · diff ↗
- 7.3-292013-08-31 · diff ↗
- 7.3-282013-08-02 · diff ↗
- 7.3-272013-07-01 · diff ↗
- 7.3-262013-04-03 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 7.3-252013-03-14 · diff ↗
- 7.3-232013-01-08 · diff ↗
- 7.3-222012-10-08 · diff ↗
- 7.3-212012-08-30 · diff ↗
- 7.3-202012-08-01 · diff ↗
- 7.3-192012-06-27 · diff ↗
- 7.3-182012-05-28 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 7.3-172012-02-08 · diff ↗
- 7.3-162011-11-02 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 7.3-152011-09-26 · diff ↗
- 7.3-142011-07-23 · diff ↗
- 7.3-132011-04-13 · diff ↗
- RR 2.13.0 released · 2011-04-13
- 7.3-122011-03-06 · diff ↗
- 7.3-112011-02-10 · diff ↗
- 7.3-92010-12-03 · diff ↗
- RR 2.12.0 released · 2010-10-15
- 7.3-82010-09-17 · diff ↗
- 7.3-72010-07-03 · diff ↗
- 7.3-62010-05-22 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 7.3-52010-01-03 · diff ↗
- 7.3-42009-11-23 · diff ↗
- 7.3-32009-10-28 · diff ↗
- RR 2.10.0 released · 2009-10-26
- 7.3-12009-08-07 · diff ↗
- 7.3-02009-05-08
- RR 2.9.0 released · 2009-04-17
0 of 2 selectedCompare selected
Package metadata
- First published
- 2009-05-08
- Total releases
- 78 / 17 yrs
- License
- GPL-2 | GPL-3 OSI
- Minimum R
- ≥ 4.4.0
- Bundled data
- 166 KB / 87 files
- Download size
- 498 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("MASS")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.