G_surv: Integral of Survival Function of Residual Censoring Variable

Description Usage Arguments Value Examples

View source: R/G_surv.R

Description

Integrate the survival function of residual censoring variable from 0 to a user-specified upper bound.

Usage

1
G_surv(time, cens, time_Y, weight)

Arguments

time

The follow up time for right censored data.

cens

The censoring status, 0 for censoring, 1 for failure.

time_Y

The upper bound of the integral.

weight

The weight for each observation.

Value

This function returns the integral of the residual censoring variable from 0 to a user-specified upper bound.

Examples

1
2
G_surv(time = rexp(100,1), cens = rbinom(100, 1, 0.8), time_Y = 1.5, weight = rep(1, 100))
G_surv(time = rexp(100,1), cens = rbinom(100, 1, 0.8), time_Y = 1.5, weight = rexp(100, 1))

ZexiCAI/TVQRLB documentation built on Dec. 30, 2019, 6:02 p.m.