{
  "_id": "6b0105c205a44bc901249443",
  "Package": "weightedsurv",
  "Title": "Survival Analysis with Subject-Specific (Case Weights) and\nTime-Dependent Weighting",
  "Version": "0.2.0",
  "Authors@R": "person(\"Larry\", \"Leon\", , \"larry.leon.05@post.harvard.edu\", role = c(\"aut\", \"cre\"))",
  "Description": "Provides survival analysis functions with support for\ntime-dependent and subject-specific (e.g., propensity score)\nweighting. Implements weighted estimation for Cox models,\nKaplan-Meier survival curves, and treatment differences with\npoint-wise and simultaneous confidence bands. Includes\nrestricted mean survival time (RMST) comparisons evaluated\nacross all potential truncation times with both point-wise and\nsimultaneous confidence bands. See Cole, S. R. & Hernán, M. A.\n(2004) <doi:10.1016/j.cmpb.2003.10.004> for methodological\nbackground.",
  "License": "MIT + file LICENSE",
  "URL": "https://larry-leon.github.io/weightedsurv/,\nhttps://github.com/larry-leon/weightedsurv",
  "BugReports": "https://github.com/larry-leon/weightedsurv/issues",
  "Encoding": "UTF-8",
  "Config/Needs/website": "doFuture, foreach, future, future.callr,\ngsDesign2, htmltools, parallelly, simtrial, tibble, tictoc,\ntidyr, katex",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.1.0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-21 02:40:31 UTC",
    "User": "root"
  },
  "Author": "Larry Leon [aut, cre]",
  "Maintainer": "Larry Leon <larry.leon.05@post.harvard.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-20 22:10:02 UTC",
  "RemoteUrl": "https://github.com/cran/weightedsurv",
  "RemoteRef": "HEAD",
  "RemoteSha": "00feaf89393496c3d455deb9ce90aa7b9199a816",
  "_user": "cran",
  "_type": "src",
  "_file": "weightedsurv_0.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/09068ee4a40cbe288d9828dfa7057e01496b2eafe86577d96582f7ffd214b16c",
  "_filesize": 3641357,
  "_sha256": "09068ee4a40cbe288d9828dfa7057e01496b2eafe86577d96582f7ffd214b16c",
  "_expires": "2027-03-01T02:45:20.000Z",
  "_created": "2026-11-21T02:40:31.000Z",
  "_published": "2026-11-21T02:45:22.249Z",
  "_upstream": "https://github.com/cran/weightedsurv",
  "_status": "success",
  "_maintainer": {
    "name": "Larry Leon",
    "email": "larry.leon.05@post.harvard.edu",
    "login": "larry-leon",
    "description": "Biostatistician with interests in survival analysis and applications of causal inference methodologies to clinical trials research",
    "uuid": 46011360
  },
  "_jobs": [
    {
      "job": 136702134123,
      "time": 195,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14688456393"
    },
    {
      "job": 136702134063,
      "time": 241,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14688421612"
    },
    {
      "job": 136700825711,
      "time": 279,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14687408808"
    },
    {
      "job": 136702134041,
      "time": 148,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14687409110"
    },
    {
      "job": 136702134082,
      "time": 132,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14688327204"
    },
    {
      "job": 136702134052,
      "time": 161,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14688262612"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/44856779798",
  "_commit": {
    "id": "00feaf89393496c3d455deb9ce90aa7b9199a816",
    "author": "Larry Leon <larry.leon.05@post.harvard.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.2.0\n",
    "time": 1795212602
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "adjustedCurves",
      "role": "Suggests"
    },
    {
      "package": "data.table",
      "role": "Suggests"
    },
    {
      "package": "DiagrammeR",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "gt",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "pammtools",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.1.7",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-52",
      "n": 1
    },
    {
      "week": "2026-47",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2025-12-22"
    },
    {
      "name": "0.2.0",
      "date": "2026-11-20"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "larry-leon",
      "count": 2,
      "uuid": 46011360
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 466,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/weightedsurv"
  },
  "_devurl": "https://github.com/larry-leon/weightedsurv",
  "_pkgdown": "https://larry-leon.github.io/weightedsurv/",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/weightedsurv.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/larry-leon/weightedsurv",
  "_realowner": "larry-leon",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-12-22"
    },
    {
      "version": "0.2.0",
      "date": "2026-11-21"
    }
  ],
  "_authors": [
    {
      "name": "Larry Leon",
      "email": "larry.leon.05@post.harvard.edu",
      "role": [
        "aut",
        "cre"
      ]
    }
  ],
  "_exports": [
    "add_legends",
    "add_median_annotation",
    "add_risk_table",
    "calculate_risk_event_counts",
    "check_km_curve",
    "check_results",
    "ci_cox",
    "count_weighted",
    "cox_rhogamma",
    "cox_rhogamma_resample",
    "cox_score_rhogamma",
    "create_baseline_table",
    "cumulative_rmst_bands",
    "df_counting",
    "extract_and_calc_weights",
    "extract_group_data",
    "find_cox_root",
    "format_pval",
    "get_censoring_and_events",
    "get_dfcounting",
    "get_event_risk_matrices",
    "get_riskpoints",
    "get_validated_weights",
    "get_weights",
    "KM_diff",
    "KM_estimates",
    "KM_plot_2sample_weighted_counting",
    "km_quantile",
    "km_quantile_table",
    "kmq_calculations",
    "N_rhogamma",
    "plot_km",
    "plot_km_confint_polygon",
    "plot_km_curves_counting",
    "plot_weight_schemes",
    "plot_weighted_km",
    "plotKM.band_subgroups",
    "ps_weights",
    "resampling_survival",
    "risk_weighted",
    "safe_run",
    "score_calculation",
    "validate_input",
    "validate_scheme_params",
    "wlr_cumulative",
    "wlr_dhat_estimates",
    "wt.rg.S"
  ],
  "_help": [
    {
      "page": "add_legends",
      "title": "Add legends to KM plot",
      "topics": [
        "add_legends"
      ]
    },
    {
      "page": "add_median_annotation",
      "title": "Add median annotation to KM plot",
      "topics": [
        "add_median_annotation"
      ]
    },
    {
      "page": "add_risk_table",
      "title": "Add risk table annotation to KM plot",
      "topics": [
        "add_risk_table"
      ]
    },
    {
      "page": "calculate_risk_event_counts",
      "title": "Calculate risk set and event counts at time points",
      "topics": [
        "calculate_risk_event_counts"
      ]
    },
    {
      "page": "check_km_curve",
      "title": "Check KM curve for validity",
      "topics": [
        "check_km_curve"
      ]
    },
    {
      "page": "check_results",
      "title": "Check and Compare Statistical Test Results",
      "concept": [
        "diagnostic_functions"
      ],
      "topics": [
        "check_results"
      ]
    },
    {
      "page": "ci_cox",
      "title": "Confidence interval for Cox model estimate",
      "topics": [
        "ci_cox"
      ]
    },
    {
      "page": "count_weighted",
      "title": "Weighted counting process",
      "topics": [
        "count_weighted"
      ]
    },
    {
      "page": "cox_rhogamma",
      "title": "Weighted Cox Model with Rho-Gamma Weights",
      "concept": [
        "survival_analysis",
        "weighted_tests"
      ],
      "topics": [
        "cox_rhogamma"
      ]
    },
    {
      "page": "cox_rhogamma_resample",
      "title": "Resampling for Weighted Cox Model (rho, gamma)",
      "topics": [
        "cox_rhogamma_resample"
      ]
    },
    {
      "page": "cox_score_rhogamma",
      "title": "Cox score with rho-gamma weights",
      "topics": [
        "cox_score_rhogamma"
      ]
    },
    {
      "page": "create_baseline_table",
      "title": "Create Baseline Characteristics Table by Treatment Arm",
      "topics": [
        "create_baseline_table"
      ]
    },
    {
      "page": "cumulative_rmst_bands",
      "title": "Cumulative RMST bands for survival curves",
      "topics": [
        "cumulative_rmst_bands"
      ]
    },
    {
      "page": "df_counting",
      "title": "Weighted and Stratified Survival Analysis",
      "concept": [
        "survival_analysis",
        "weighted_tests"
      ],
      "topics": [
        "df_counting"
      ]
    },
    {
      "page": "extract_and_calc_weights",
      "title": "Extract and calculate weights for multiple schemes",
      "topics": [
        "extract_and_calc_weights"
      ]
    },
    {
      "page": "extract_group_data",
      "title": "Extract time, event, and weight data for a group",
      "topics": [
        "extract_group_data"
      ]
    },
    {
      "page": "find_cox_root",
      "title": "Root-finding for Cox score function",
      "topics": [
        "find_cox_root"
      ]
    },
    {
      "page": "format_pval",
      "title": "Format p-value for display",
      "topics": [
        "format_pval"
      ]
    },
    {
      "page": "get_censoring_and_events",
      "title": "Get censoring and event times and their indices",
      "topics": [
        "get_censoring_and_events"
      ]
    },
    {
      "page": "get_dfcounting",
      "title": "Get df_counting results",
      "topics": [
        "get_dfcounting"
      ]
    },
    {
      "page": "get_event_risk_matrices",
      "title": "Event and Risk Matrices for Survival Analysis",
      "topics": [
        "get_event_risk_matrices"
      ]
    },
    {
      "page": "get_riskpoints",
      "title": "Get risk set counts at specified risk points",
      "topics": [
        "get_riskpoints"
      ]
    },
    {
      "page": "get_validated_weights",
      "title": "Get validated weights for a data frame",
      "topics": [
        "get_validated_weights"
      ]
    },
    {
      "page": "get_weights",
      "title": "Get weights for a weighting scheme",
      "topics": [
        "get_weights"
      ]
    },
    {
      "page": "KM_diff",
      "title": "Kaplan-Meier Difference Between Groups",
      "concept": [
        "plotting_functions",
        "survival_analysis"
      ],
      "topics": [
        "KM_diff"
      ]
    },
    {
      "page": "KM_estimates",
      "title": "Kaplan-Meier Survival Estimates and Variance",
      "topics": [
        "KM_estimates"
      ]
    },
    {
      "page": "KM_plot_2sample_weighted_counting",
      "title": "Plot Weighted Kaplan-Meier Curves for Two Samples (Counting Process Format)",
      "topics": [
        "KM_plot_2sample_weighted_counting"
      ]
    },
    {
      "page": "km_quantile",
      "title": "Kaplan-Meier quantile and confidence interval",
      "topics": [
        "km_quantile"
      ]
    },
    {
      "page": "km_quantile_table",
      "title": "Table of KM quantiles for two groups",
      "topics": [
        "km_quantile_table"
      ]
    },
    {
      "page": "kmq_calculations",
      "title": "Kaplan-Meier quantile calculation",
      "topics": [
        "kmq_calculations"
      ]
    },
    {
      "page": "N_rhogamma",
      "title": "Weighted event count for Cox model",
      "topics": [
        "N_rhogamma"
      ]
    },
    {
      "page": "plot_km",
      "title": "Plot Kaplan-Meier curves",
      "topics": [
        "plot_km"
      ]
    },
    {
      "page": "plot_km_confint_polygon",
      "title": "Plot confidence interval polygon for KM curve",
      "topics": [
        "plot_km_confint_polygon"
      ]
    },
    {
      "page": "plot_km_curves_counting",
      "title": "Plot KM curves for two groups with optional confidence intervals and censoring marks",
      "topics": [
        "plot_km_curves_counting"
      ]
    },
    {
      "page": "plot_weight_schemes",
      "title": "Plot weight schemes for survival analysis",
      "topics": [
        "plot_weight_schemes"
      ]
    },
    {
      "page": "plot_weighted_km",
      "title": "Plot weighted Kaplan-Meier curves",
      "topics": [
        "plot_weighted_km"
      ]
    },
    {
      "page": "plotKM.band_subgroups",
      "title": "Plot Kaplan-Meier Survival Difference Curves with Subgroups and Confidence Bands",
      "topics": [
        "plotKM.band_subgroups"
      ]
    },
    {
      "page": "ps_weights",
      "title": "Propensity-score weights with the pieces needed to carry their estimation into the inference",
      "concept": [
        "survival_analysis"
      ],
      "topics": [
        "print.ps_weights",
        "ps_weights"
      ]
    },
    {
      "page": "resampling_survival",
      "title": "Resampling Survival Curves for Confidence Bands",
      "topics": [
        "resampling_survival"
      ]
    },
    {
      "page": "risk_weighted",
      "title": "Weighted risk set",
      "topics": [
        "risk_weighted"
      ]
    },
    {
      "page": "safe_run",
      "title": "Safe execution wrapper",
      "topics": [
        "safe_run"
      ]
    },
    {
      "page": "score_calculation",
      "title": "Score calculation for weighted Cox model",
      "topics": [
        "score_calculation"
      ]
    },
    {
      "page": "validate_input",
      "title": "Validate required columns in a data frame",
      "topics": [
        "validate_input"
      ]
    },
    {
      "page": "validate_scheme_params",
      "title": "Validate weighting scheme parameters",
      "topics": [
        "validate_scheme_params"
      ]
    },
    {
      "page": "wlr_cumulative",
      "title": "Weighted log-rank cumulative statistics",
      "topics": [
        "wlr_cumulative"
      ]
    },
    {
      "page": "wlr_dhat_estimates",
      "title": "Weighted Log-Rank and Difference Estimate at a Specified Time",
      "topics": [
        "wlr_dhat_estimates"
      ]
    },
    {
      "page": "wt.rg.S",
      "title": "Compute Time-Dependent Weights for Survival Analysis",
      "concept": [
        "survival_analysis",
        "weighted_tests"
      ],
      "topics": [
        "wt.rg.S"
      ]
    }
  ],
  "_readme": "https://github.com/cran/weightedsurv/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "Matrix",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "survival",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "weightedsurv_examples.Rmd",
      "filename": "weightedsurv_examples.html",
      "title": "Weighted Survival Analysis Examples",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Survival Analysis and KM Plotting",
        "Analysis functions",
        "df_counting",
        "plot_weighted_km",
        "KM_diff",
        "plotKM.band_subgroups",
        "wlr_dhat_estimates",
        "cumulative_rmst_bands",
        "GBSG data analysis example",
        "Show some weight functions",
        "GBSG KM plots",
        "Rotterdam observational data analysis with weighting",
        "Effective sample size with all node-positive women",
        "Restricted population: postmenopausal women without chemotherapy",
        "Compare with GBSG trial data",
        "Simultaneous bands and point-wise CIs",
        "Compare Rotterdam observational data with propensity-score weighting and GBSG randomized data",
        "Weights treated as known or as estimated",
        "Compare GBSG experimental to Rotterdam control",
        "Cumulative weighted log-rank statistics",
        "Reading the cross-trial comparison at a common horizon",
        "GBSG subgroup differences along with ITT simultaneous band:",
        "Look at GBSG er>0 subgroup population",
        "Weighted Cox Analysis of Rotterdam data with time-dependent, and subject-specific [ps weighting] weighting",
        "Some checks on results",
        "Check weighted K-M SE's with survfit",
        "Check SE's calculated via resampling (draws = 5000)",
        "Compare with the adjustedCurves package",
        "Compare KM plots with adjustedCurves package",
        "Compare SE's with adjustedCurves package",
        "Check log-rank statistics"
      ],
      "created": "2025-12-22 17:37:53",
      "modified": "2026-11-20 22:10:02",
      "commits": 2
    }
  ],
  "_score": 3.4771212547196626,
  "_indexed": false,
  "_nocasepkg": "weightedsurv",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://larry-leon.r-universe.dev/weightedsurv",
  "_previous": "0.1.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-11-21T02:43:06.000Z",
      "distro": "resolute",
      "commit": "00feaf89393496c3d455deb9ce90aa7b9199a816",
      "fileid": "https://r2.ropensci.org/e16555eeb73b5d72ca7c0ecde60ad2e3b529cdba41eb8ec590098279fda3ddf6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44856779798"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-11-21T02:43:37.000Z",
      "distro": "resolute",
      "commit": "00feaf89393496c3d455deb9ce90aa7b9199a816",
      "fileid": "https://r2.ropensci.org/6855f4d150a0010516ba95d14bb984c8e0e9f9a1c78955e7748c8ada238361b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44856779798"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-11-21T02:43:24.000Z",
      "commit": "00feaf89393496c3d455deb9ce90aa7b9199a816",
      "fileid": "https://r2.ropensci.org/955ee84180d69609760b4f5a741456dac2b7b2b9915ab8a731a6a8a3b2aba016",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44856779798"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-11-21T02:41:51.000Z",
      "commit": "00feaf89393496c3d455deb9ce90aa7b9199a816",
      "fileid": "https://r2.ropensci.org/3e64ce2bc9a0ce8b6328b9dfe995b7609babd4f32d773256c24fba53fb0e650b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44856779798"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-11-21T02:42:06.000Z",
      "commit": "00feaf89393496c3d455deb9ce90aa7b9199a816",
      "fileid": "https://r2.ropensci.org/43a041bf287fa7de118dc503d973b0da0bdc2674c55a6573b92d50416c61a9e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44856779798"
    }
  ]
}