We propose a class of two-sample statistics for testing the equality of proportions and the equality of survival functions. We build our proposal on a weighted combination of a score test for the difference in proportions and a Weighted Kaplan-Meier statistic-based test for the difference of survival functions. The proposed statistics are fully non-parametric and do not rely on the proportional hazards assumption for the survival outcome.
We implemented the proposed statistics in the R package SurvBin.
The SurvBin package contains four key functions:
The SurvBin package also provides the function survbinCov that can be used to calculate the covariance between the survival and binary statistics; and the function simsurvbin for simulating bivariate binary and survival data.
More information can be found at: https://martabofillroig.github.io/SurvBin/ (see Reference tab).
# install.packages("devtools")
library(devtools)
install_github("MartaBofillRoig/SurvBin")
This repository also contains the source files of the preprint:
Specifically, in the folder CODE_paper/CaseStudy, there is the source code for reproduce the illustration; and in the folder CODE_paper/Simulations, there is the code to reproduce the simulation study (see Simulations subfolder).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.