cens_indic is a function that takes the incoming data and data structure and builds a matrix of censoring indicator variables. This saves the user from having to create these by hand.

create_censoring_indicators(
  data,
  models,
  tau = NULL,
  cumcount = FALSE,
  tau_censor = FALSE
)

Arguments

data

Data frame

models

A object of type model_specification

tau

A administrative censoring time, if NULL then set to maximum observed censoring/event time + epsilon

cumcount

Setup the censoring indicators for cumulative count estimation

tau_censor

For backward compatabiity before 0.36.17. Treat censoring at end of follow-up (tau) as a censoring event to be included in censoring models? Defaults to FALSE.

Value

A matrix of censoring indicator variables

Author

M. Alan Brookhart