PSsurvival0.2.0 package

Propensity Score Methods for Survival Analysis

calculate_ipw_weights

Propensity Score Weighting for PSsurvival Package

calculate_overlap_weights

Calculate Overlap Weights

check_data_structure

Check Data Structure

check_variables_exist

Check if Variables Exist in Data

compute_etau

Survival Effect Estimation with Weibull Censoring Scores

estimate_censoring_score_cox

Estimate Censoring Scores Using Cox Regression

estimate_censoring_score_weibull

Censoring Score Estimation

estimate_ps

Propensity Score Estimation for PSsurvival Package

estimate_weighted_km

Weighted Kaplan-Meier Estimation with Classic Greenwood Variance

estimate_weights

Estimate Propensity Score Weights

fit_marginal_cox

Marginal Cox Model Estimation with Propensity Score Weighting

generate_boot_indices

Generate Bootstrap Sample Indices

marCoxph

Marginal Cox Model with Propensity Score Weighting

plot.surveff

Plot Method for surveff Objects

plot.weightedKM

Plot Method for Weighted Kaplan-Meier Estimates

print.marCoxph

Print Method for marCoxph Objects

print.surveff

Print Method for surveff Objects

print.weightedKM

Print Method for Weighted Kaplan-Meier Estimates

summary.marCoxph

Summary Method for marCoxph Objects

summary.surveff

Summary Method for surveff Objects

summary.weightedKM

Summary Method for Weighted Kaplan-Meier Estimates

surv_cox

Survival Effect Estimation with Cox Censoring Scores

surv_weibull

Estimate Counterfactual Survival Functions Using Weibull Censoring Sco...

surveff_cox

Wrapper for Cox Survival Effect Estimation with Variance

surveff_weibull

Wrapper for Weibull Survival Effect Estimation with Variance

surveff

Survival Effect Estimation with Propensity Score Weighting

trim_weights_asymmetric

Asymmetric Propensity Score Trimming (Sturmer Extension)

trim_weights_symmetric

Symmetric Propensity Score Trimming (Crump Extension)

validate_censor_formula

Validate Censoring Formula

validate_data_variables

Validate Data Variables

validate_method_arguments

Validate Method Arguments

validate_ps_formula

Data Validation Functions for PSsurvival Package

validate_PSsurvdiff_inputs

Validate All Inputs for PSsurvdiff

var_marginalcox_bootstrap

Bootstrap Variance Estimation for Marginal Cox Model

var_surv_cox_bootstrap

Bootstrap Variance Estimation for Cox Survival Functions

var_surv_weibull_analytical

Compute Analytical M-Estimation Variance for Binary Treatment Survival...

var_surv_weibull_bootstrap

Bootstrap Variance Estimation for Weibull Survival Functions

weightedKM

Weighted Kaplan-Meier Estimation with Propensity Score Weights

Implements propensity score weighting methods for estimating counterfactual survival functions, marginal hazard ratios, and weighted Kaplan-Meier and cumulative risk curves in observational studies with time-to-event outcomes. Supports binary and multiple treatment groups with inverse probability of treatment weighting (IPW), overlap weighting (OW), and average treatment effect on the treated (ATT). Includes symmetric trimming (Crump extension) for extreme propensity scores. Variance estimation via analytical M-estimation or bootstrap. Methods based on Li et al. (2018) <doi:10.1080/01621459.2016.1260466>, Li & Li (2019) <doi:10.1214/19-AOAS1282>, and Cheng et al. (2022) <doi:10.1093/aje/kwac043>.

  • Maintainer: Chengxin Yang
  • License: GPL (>= 2)
  • Last published: 2026-01-10