powered by
Helper function; calculates censoring probability needed for inverse probability of censoring weighting
censor.weight(data.x, data.delta, t, weight = NULL)
numeric vector, the observed event time: X = min(T, C) where T is the time of the primary outcome, C is the censoring time
numeric vector of 0/1, the censoring indicator: D = I(T<C) where T is the time of the primary outcome, C is the censoring time
number, the time of interest
a numeric vector or matrix of weights used for perturbation-resampling, default is null.
Kaplan Meier estimate of survival for censoring at time t
Computes the Kaplan Meier estimate of survival for the censoring random variable at the specified time
# NOT RUN { data(ExampleData) censor.weight(data.x = ExampleData$x1, data.delta = ExampleData$delta1, t=5) # }
Run the code above in your browser using DataLab