Skip to content

Stagewise Variable Selection for Joint Models of Semi-Competing Risks

0packages depend
2Kdownloads / year
56.2%test coverage
13/13flavors OK

Overview

About

Implements stagewise regression for variable selection in joint models of recurrent events and terminal events (semi-competing risks). Supports two model frameworks: the joint frailty model (Cox-type) and the joint scale-change model (AFT-type). Provides cooperative lasso, lasso, and group lasso penalties with cross-validation for tuning parameter selection via cross-fitted estimating equations.

Changes in 0.1.2
  • Corrected the stagewise update directions under the scaled penalties. The argmax of the update objective over the scaled-penalty unit ball carries a factor 1/xi on every death-model coordinate (scaled lasso and mixed-sign cooperative branches: e_j sgn(g)/xi; group and same-sign cooperative branches: (g_a, g_b/xi^2)/||(g_a, g_b/xi)||_2). Earlier versions used unit-norm directions in rescaled gradient coordinates, which under-stepped the death-model block by the rescaling factor at every iteration and systematically over-shrank death-model coefficients.
  • The gradient-rescaling factor is now frozen at its initial value, so each fit emulates a single fixed scaled penalty and the solution paths are well behaved.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 5.6 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-07-31
  • OK11 OK2026-04-25
  • ERROR6 OK, 1 NOTE, 1 ERROR2026-04-22
Advisories

none known

Documentation

In release 0.1.2
READMEYes · 1,022 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.1.2Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
57 (46 internal)includes a package overview page
Examples that run
20%2 run in a plain check · 8 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

2K
CRAN downloads in the past year
Rank #14,752 · ~6/day · ~169/mo
Daily download trend is not available in this view yet.
27930 days
80090 days
2K1 year
Compare downloads with other packages →
Also on149 r2u8 autocran

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing swjm adds 35 packages (19 with compiled code, 31 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, optimx 2.2 MB.

Depends (1)
R >= 3.5.0
Imports (4)
RcppMatrixstatsreReg
LinkingTo (2)
Suggests (5)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (6)
Author, Maintainer since 0.1.0 (2026)
Author
Contributor
Releases (2)

Pick two releases to compare their code metrics.

  • 0.1.2Latest
    record
    2026-07-30 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0
    record
    2026-04-21
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-04-21
Total releases
2 / 1 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Download size
820 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("swjm")
Huling, J. D., Chiou, S. H. (., Hou, J., Huang, C., Huo, L., & Jiang, Z. (2026). swjm: Stagewise Variable Selection for Joint Models of Semi-Competing Risks (Version 0.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.swjm

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 swjm version 0.1.2 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, 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