Biomarker Selection in Penalized Regression Models
Overview
Provides some tools for developing and validating prediction models, estimate expected survival of patients and visualize them graphically. Most of the implemented methods are based on penalized regressions such as: the lasso (Tibshirani R (1996)), the elastic net (Zou H et al. (2005) doi:10.1111/j.1467-9868.2005.00503.x), the adaptive lasso (Zou H (2006) doi:10.1198/016214506000000735), the stability selection (Meinshausen N et al. (2010) doi:10.1111/j.1467-9868.2010.00740.x), some extensions of the lasso (Ternes et al. (2016) doi:10.1002/sim.6927), some methods for the interaction setting (Ternes N et al. (2016) doi:10.1002/bimj.201500234), or others. A function generating simulated survival data set is also provided.
Install
Health
ERRORexamplesr-devel-linux-x86_64-debian-gcc
Running examples in ‘biospear-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: expSurv
> ### Title: Computation of expected survival based on a prediction model
> ### Aliases: expSurv predict.resexpSurv plot.resexpSurv
> ### Keywords: survival estimations confidence intervals
>
> ### ** Examples
>
> ########################################
> # Simulated data set
> ########################################
>
> ## Low calculation time
> set.seed(654321)
> sdata <- simdata(
+ n = 500, p = 20, q.main = 3, q.inter = 0,
+ prob.tt = 0.5, alpha.tt = 0,
+ beta.main = -0.8,
+ b.corr = 0.6, b.corr.by = 4,
+ m0 = 5, wei.shape = 1, recr = 4, fu = 2,
+ timefactor = 1)
>
> resBM <- BMsel(
+ data = sdata,
+ method = c("lasso", "lasso-pcvl"),
+ inter = FALSE,
+ folds = 5)
Computing selection with method: lasso
Warning: Starting in glmnet 5.1, the default Cox tie-handling method wil
...[truncated]...
Warning: Starting in glmnet 5.1, the default Cox tie-handling method will change from 'breslow' to 'efron' (matching survival::coxph). To silence this message and lock in the v5.0 default, pass cox.ties = 'breslow' explicitly. To preview the v5.1 behavior, pass cox.ties = 'efron'.
Computing selection with method: lasso-pcvl (lasso penalized extensions)
Warning: Starting in glmnet 5.1, the default Cox tie-handling method will change from 'breslow' to 'efron' (matching survival::coxph). To silence this message and lock in the v5.0 default, pass cox.ties = 'breslow' explicitly. To preview the v5.1 behavior, pass cox.ties = 'efron'.
>
> esurv <- expSurv(
+ res = resBM,
+ traindata = sdata,
+ boot = FALSE,
+ time = 5,
+ trace = TRUE)
Computation of the expected survival
Computation of analytical confidence intervals
Error in a$specials[[i]] : subscript out of bounds
Calls: expSurv ... survfit.coxph -> model.matrix.coxph -> delete.response -> off
Execution haltedNOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Stefan Michiels <stefan.michiels@gustaveroussy.fr>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Nils",
family = "Ternes",
role = "aut"),
person(given = "Federico",
family = "Rotolo",
role = "aut"),
person(given = "Stefan",
family = "Michiels",
role = c("aut", "cre"),
email = "stefan.michiels@gustaveroussy.fr"))
as necessary.- ERROR11 OK, 1 NOTE, 1 ERROR2026-10-24
- NOTE11 OK, 2 NOTE2026-06-09
- ERROR11 OK, 1 NOTE, 1 ERROR2026-06-08
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 6
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 91%
- Return-value docs
- 100%
- Help pages citing references
- 67%
Downloads
Dependencies
Installing biospear adds 188 packages (99 with compiled code, 154 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.
Code & Tests
Datasets
People & History
Previously maintained by Nils Ternes (1.0.0 to 1.0.1).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- unarchivedReturned to CRAN2018-12-04
- 1.0.2Latest
- archivedRemoved from CRAN2018-05-24check problems were not corrected despite reminders
- RR 3.5.0 released · 2018-04-23
- 1.0.12017-08-11 · diff ↗
- 1.0.02017-05-13
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-05-13
- Total releases
- 3 / 9 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 2.2 MB / 2 files
- Download size
- 2.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("biospear")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.