Skip to content

biospear

1.0.2Package record

Biomarker Selection in Penalized Regression Models

0packages depend
3.4Kdownloads / year
–test coverage
11/13flavors OK

Overview

About

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

CRAN checks
1ERROR1NOTE11OK
Check messages
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 halted
NOTECRAN 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.

CRAN check page ↗

Slowest check: 5.0 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.0.2
READMENoVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
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

3.4K
CRAN downloads in the past year
Rank #8,219 · ~9/day · ~282/mo
Daily download trend is not available in this view yet.
45330 days
1.1K90 days
3.4K1 year
Compare downloads with other packages →
Also on1.5K r2u

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

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.

Depends (2)
R >= 2.10pkgconfig
Imports (17)
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (from the free-text Author field) (3)
Author, Maintainer since 1.0.2 (2018)

Previously maintained by Nils Ternes (1.0.0 to 1.0.1).

Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 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
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • unarchivedReturned to CRAN
    2018-12-04
  • 1.0.2Latest
    record
    2018-12-04 · current release · diff ↗
  • archivedRemoved from CRAN
    2018-05-24
    check problems were not corrected despite reminders
  • R
    R 3.5.0 released · 2018-04-23
  • 1.0.1
    record
    2017-08-11 · diff ↗
  • 1.0.0
    record
    2017-05-13
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for biospear version 1.0.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