Skip to content

weightedsurv

0.1.0Package record

Survival Analysis with Subject-Specific (Case Weights) and Time-Dependent Weighting

1packages depend
4.6Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Provides survival analysis functions with support for time-dependent and subject-specific (e.g., propensity score) weighting. Implements weighted estimation for Cox models, Kaplan-Meier survival curves, and treatment differences with point-wise and simultaneous confidence bands. Includes restricted mean survival time (RMST) comparisons evaluated across all potential truncation times with both point-wise and simultaneous confidence bands. See Cole, S. R. & Hernán, M. A. (2004) doi:10.1016/j.cmpb.2003.10.004 for methodological background.

Install

Health

CRAN checks
13OK
Slowest check: 8.4 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.1.0
READMEYes · 518 wordsVignettesYes · 1 · dynamicNEWSNoCitation fileNo

The repository also keeps web-only articles.

Help pages
47 (1 internal)includes a package overview page
Examples that run
86%6 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
13%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
9%

Downloads

4.6K
CRAN downloads in the past year
Rank #9,250 · ~13/day · ~387/mo
Daily download trend is not available in this view yet.
37830 days
1.1K90 days
4.6K1 year
Compare downloads with other packages →
Also on87 r2u

Repository

5Stars
1Forks
0Open issues
0Open PRs
1Releases
73Commits
2Commit identities
kaplan-meierrmstwlrweighted-cox
73 commits · Last activity 2026-02-12 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-09-27 · 22026-07-07 · 5
PracticesBeta

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

Checks run against github.com/larry-leon/weightedsurv 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 (2)
pkgdown

GitHub Pages site last deployed 2026-02-12

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

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing weightedsurv adds 17 packages (7 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.

Depends (0)
none
Imports (6)
ggplot2graphicsrlangstatssurvivalutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1.0 (2025)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0Latest
    2025-12-22 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-12-22
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Download size
4.0 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("weightedsurv")
Leon, L. (2025). weightedsurv: Survival Analysis with Subject-Specific (Case Weights) and Time-Dependent Weighting (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.weightedsurv

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 weightedsurv version 0.1.0 [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