tdSurvDiff: Calculate the Survival Difference

View source: R/tdSurvDiff.R

tdSurvDiffR Documentation

Calculate the Survival Difference

Description

This function reads in a vector of estimated weight and same length risk score to calculate survival difference by formula (Wu and Li, 2018).This function is used internally by other functions in this package.

Usage

tdSurvDiff(W, X)

Arguments

W

a numerical vector of weight estimated by nonparametric weight adjustments (Li et al., 2015). Same length with X.

X

a numerical vector of risk score values. Same length with W.

Value

Survival difference as a numerical scalar.


tdROC documentation built on May 29, 2024, 3:47 a.m.

Related to tdSurvDiff in tdROC...