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

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.

Package details

AuthorLarry Leon [aut, cre]
MaintainerLarry Leon <larry.leon.05@post.harvard.edu>
LicenseMIT + file LICENSE
Version0.1.0
URL https://github.com/larry-leon/weightedsurv
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("weightedsurv")

Try the weightedsurv package in your browser

Any scripts or data that you put into this service are public.

weightedsurv documentation built on Dec. 23, 2025, 1:07 a.m.