Skip to content

plsRcox

1.8.2Package record

Partial Least Squares Regression for Cox Models and Related Techniques

3packages dependsuggested by 3
19.6Kdownloads / year
–test coverage
11/13flavors OK

Overview

About

Provides Partial least squares Regression and various regular, sparse or kernel, techniques for fitting Cox models in high dimensional settings doi:10.1093/bioinformatics/btu660, Bastien, P., Bertrand, F., Meyer N., Maumy-Bertrand, M. (2015), Deviance residuals-based sparse PLS and sparse kernel PLS regression for censored data, Bioinformatics, 31(3):397-404. Cross validation criteria were studied in doi:10.48550/arXiv.1810.02962, Bertrand, F., Bastien, Ph. and Maumy-Bertrand, M. (2018), Cross validating extensions of kernel, sparse or regular partial least squares regression models to censored data.

Install

Health

CRAN checks
2ERROR11OK
Check messages
ERRORexamplesr-devel-linux-x86_64-debian-gcc
Running examples in ‘plsRcox-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: cv.autoplsRcox
> ### Title: Cross-validating an autoplsRcox-Model
> ### Aliases: cv.autoplsRcox
> ### Keywords: models regression
> 
> ### ** Examples
> 
> 
> data(micro.censure)
> data(Xmicro.censure_compl_imp)
> set.seed(123456)
> X_train_micro <- apply((as.matrix(Xmicro.censure_compl_imp)),FUN="as.numeric",MARGIN=2)[1:80,]
> X_train_micro_df <- data.frame(X_train_micro)
> Y_train_micro <- micro.censure$survyear[1:80]
> C_train_micro <- micro.censure$DC[1:80]
> 
> #Should be run with a higher value of nt (at least 10)
> (cv.autoplsRcox.res=cv.autoplsRcox(list(x=X_train_micro,time=Y_train_micro,
+ status=C_train_micro),nt=3,verbose=FALSE))
Error in a$specials[[i]] : subscript out of bounds
Calls: cv.autoplsRcox ... model.matrix -> model.matrix.coxph -> delete.response -> off
Execution halted
ERRORpackage dependenciesr-oldrel-macos-arm64
Package required but not available: ‘survcomp’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERRORtestsr-devel-linux-x86_64-debian-gcc
Running ‘testthat.R’ [6s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(plsRcox)
  > 
  > test_check("plsRcox")
  Saving _problems/test-predict-coxdrmodels-10.R
  Saving _problems/test-predict-plsRcoxmodel-7.R
  Saving _problems/test-predict-plsRcoxmodel-21.R
  Saving _problems/test-predict-plsRcoxmodel-38.R
  Saving _problems/test-predict-plsRcoxmodel-65.R
  [ FAIL 5 | WARN 0 | SKIP 3 | PASS 76 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • {spls} is not installed (3): 'test-behavior-coxsplsDR.R:5:3',
    'test-predict-coxdrmodels.R:26:3', 'test-predict-coxdrmodels.R:42:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-predict-coxdrmodels.R:10:3'): coxplsDR allres objects predict from original covariates ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `a$specials[[i]]`: subscript out of bounds
  Backtrace:
      ▆
   
...[truncated]...
 9.       └─stats::delete.response(object$terms)
   10.         └─stats (local) off(a$specials[[i]])
  ── Error ('test-predict-plsRcoxmodel.R:65:3'): predict.plsRcoxmodel forwards reference to predict.coxph ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `a$specials[[i]]`: subscript out of bounds
  Backtrace:
       ▆
    1. ├─plsRcox::plsRcox(...) at test-predict-plsRcoxmodel.R:65:3
    2. └─plsRcox:::plsRcoxmodel.default(...)
    3.   ├─base::as.matrix(predict(tempregcox, type = "expected"))
    4.   ├─stats::predict(tempregcox, type = "expected")
    5.   ├─stats::predict(tempregcox, type = "expected")
    6.   └─survival:::predict.coxph(tempregcox, type = "expected")
    7.     ├─stats::model.matrix(object, data = mf)
    8.     └─survival:::model.matrix.coxph(object, data = mf)
    9.       └─stats::delete.response(object$terms)
   10.         └─stats (local) off(a$specials[[i]])
  
  [ FAIL 5 | WARN 0 | SKIP 3 | PASS 76 ]
  Error:
  ! Test failures.
  Execution halted

CRAN check page ↗

Slowest check: 6.0 min · r-oldrel-windows-x86_64
Status changes
  • ERROR11 OK, 2 ERRORNow
  • ERROR12 OK, 2 ERROR2026-03-10
Advisories

none known

Documentation

In release 1.8.2
READMEYes · 550 wordsVignettesNoNEWS· In the repository, left out of the releaseCitation fileYes · cites a publicationWebsiteYes · pkgdown
Help pages
31 (2 internal)includes a package overview page
Examples that run
93%27 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
72%
Return-value docs
100%
Help pages citing references
97%

Downloads

19.6K
CRAN downloads in the past year
Rank #2,968 · ~54/day · ~1.6K/mo
Daily download trend is not available in this view yet.
1.7K30 days
4.7K90 days
19.6K1 year
Compare downloads with other packages →
Also on200 r2u112 c2d4u

Repository

8Stars
1Forks
0Open issues
0Open PRs
3Releases
39Commits
1Commit identities
39 commits · Last activity 2026-03-24 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
2,086
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2025-10-06 · 62026-07-28 · 8
PracticesBeta

6 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/fbertran/plsrcox on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-03-24

pkgdown site last built 2025-09-13, before release 1.8.2 (2026-03-24)

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

Installing plsRcox adds 113 packages (64 with compiled code, 118 MB of source tarballs). Heaviest: stringi 11 MB, TH.data 8.2 MB, ggplot2 6.0 MB. 2 more not on CRAN are not measured.

Depends (1)
R >= 2.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
0indirect
Imports 3
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (2)
Maintainer since 0.2.0 (2011), Author
Listed in earlier versions (1)
Nicolas Meyer.
no longer listed · 0.2.0 to 1.7.2
Releases (16)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.8.2Latest
    record
    2026-03-24 · current release · diff ↗
  • 1.8.1
    record
    2026-02-28 · diff ↗
  • 1.8.0
    record
    2025-09-14 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.7.7
    record
    2022-11-29 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.7.6
    record
    2021-03-19 · diff ↗ ·
    removed 30 exports
    larsDR_coxph.default, larsDR_coxph.formula, coxpls.default, coxpls.formula, coxpls2.default, coxpls2.formula, coxpls3.default, coxpls3.formula, coxplsDR.default, coxplsDR.formula, coxpls2DR.default, coxpls2DR.formula, coxpls3DR.default, coxpls3DR.formula, coxsplsDR.default, coxsplsDR.formula, coxDKplsDR.default, coxDKplsDR.formula, coxDKpls2DR.default, coxDKpls2DR.formula, coxDKsplsDR.default, coxDKsplsDR.formula, DKplsRcoxmodel.default, DKplsRcoxmodel.formula, plsRcoxmodel.default, plsRcoxmodel.formula, predict.plsRcoxmodel, print.plsRcoxmodel, print.summary.plsRcoxmodel, summary.plsRcoxmodel
    added 2 exports
    DKplsRcoxmodel, plsRcoxmodel
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 1.7.4
    record
    2019-02-03 · diff ↗
  • 1.7.3.1
    record
    2018-09-11 · diff ↗
  • unarchivedReturned to CRAN
    2018-06-03
Show 20 earlier eventsHide 20 earlier events
  • 1.7.3
    record
    2018-06-03 · diff ↗
  • archivedRemoved from CRAN
    2018-05-01
    depends on archived package 'plsRglm'
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 1.7.2
    record
    2014-12-17 · diff ↗
  • 1.7.0
    record
    2014-07-19 · diff ↗ ·
    added 11 exports
    cv.autoplsRcox, cv.coxDKplsDR, cv.coxDKsplsDR, cv.coxpls, cv.coxplsDR, cv.coxsplsDR, cv.larsDR, cv.plsRcox, DKplsRcox, DKplsRcoxmodel.default, DKplsRcoxmodel.formula
  • 1.0
    record
    2014-06-28 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 0.9.999
    record
    2014-03-12 · diff ↗ ·
    removed 6 exports
    coxspls2DR, coxspls2DR.default, coxspls2DR.formula, coxDKspls2DR, coxDKspls2DR.default, coxDKspls2DR.formula
  • 0.9
    record
    2013-07-02 · diff ↗ ·
    removed 3 exports
    coxplsDR2, coxplsDR2.default, coxplsDR2.formula
    added 18 exports
    coxpls3, coxpls3.default, coxpls3.formula, coxpls2DR, coxpls2DR.default, coxpls2DR.formula, coxpls3DR, coxpls3DR.default, coxpls3DR.formula, coxspls2DR, coxspls2DR.default, coxspls2DR.formula, coxDKpls2DR, coxDKpls2DR.default, coxDKpls2DR.formula, coxDKspls2DR, coxDKspls2DR.default, coxDKspls2DR.formula
  • R
    R 3.0.0 released · 2013-04-03
  • 0.7.6
    record
    2012-11-12 · diff ↗
  • 0.7.0
    record
    2012-03-30 · diff ↗ ·
    added 13 exports
    coxsplsDR, coxsplsDR.default, coxsplsDR.formula, coxDKsplsDR, coxDKsplsDR.default, coxDKsplsDR.formula, plsRcox, plsRcoxmodel.default, plsRcoxmodel.formula, predict.plsRcoxmodel, print.plsRcoxmodel, print.summary.plsRcoxmodel, summary.plsRcoxmodel
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • R
    R 2.13.0 released · 2011-04-13
  • 0.2.0
    record
    2011-01-15
  • R
    R 2.12.0 released · 2010-10-15

Package metadata

First published
2011-01-15
Total releases
16 / 15 yrs
License
GPL-3 OSI
Minimum R
≥ 2.4.0
Bundled data
7.9 KB / 2 files
Download size
1.9 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("plsRcox")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for plsRcox version 1.8.2 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy