WGT.CEN: Calculate the censoring weights

View source: R/helpers.R

WGT.CENR Documentation

Calculate the censoring weights

Description

Calculate the weights accounting for missing binary outcomes due to censoring.

Usage

WGT.CEN(Ti, Di, t0, Vii.ptb = NULL)

Arguments

Ti

a vector of censored event times.

Di

a vector of binary values (1 or 0) indicating whether the true event time is observed.

t0

a numerical value which is the prediction time period, used for creating the binary outcome status. The value is 1 if the event time is smaller than t0; otherwise, it is 0.

Vii.ptb

a vector of perturbation variables. The default is NULL if the perturbation procedure is not implemented for estimating the variance of the IPW estimators.

Value

If Vii.ptb=NULL, it returns a single-column matrix which includes the censoring weights; otherwise, it returns a matrix with the first column being the censoring weights and the remaining columns being their perturbed counterparts.


michellezhou2009/NCCIPW documentation built on April 25, 2022, 3:39 p.m.