admin.censor: Apply administrative censoring to follow up times at a fixed...

View source: R/util.R

admin.censorR Documentation

Apply administrative censoring to follow up times at a fixed censor.time

Description

Right-censor all observations in follow.up.time at censor.time. This is useful when fitting survival curves within each time window

Usage

admin.censor(follow.up.time, time.var, event.var, censor.time = Inf)

Arguments

follow.up.time

See SDRsurv

time.var

See SDRsurv

event.var

See SDRsurv

censor.time

Administrative right-censoring time. Default is Inf, i.e., no censoring

Value

A data frame with the same shape as follow.up.time with times and event indicators modified to reflect right-censoring at censor.time.


QIU-Hongxiang-David/SDRsurv documentation built on March 29, 2024, 8:41 a.m.