identify_censoring is a data descriptor function used to identify a censoring variable and potentially supply a formula and estimation function.

identify_censoring(name, formula = ~1, estimator = estimate_censor_coxph, ...)

Arguments

name

The name of a variable in the input data to be used as a censoring time. This should be supplied as bare symbol not a character string. The censoring date should be in days from time 0.

formula

A formula object that can be used to build the censoring model. Note this does not need to include treatment since the censoring models are fit within treatment groups. Default to a null model, ~1.

estimator

A function that can be used to predict the probability of being uncensored

...

Additional arguments to be passed to estimating function.

Value

A object that can be used by specify_models to add information about the censoring to the data description function. A object that can be used by specify_models to add censoring information to the data description function.

Author

M. Alan Brookhart