estimate_censor_coxph: a function to estimate a censoring probability using coxph

estimate_censor_coxph(
  formula,
  models,
  data,
  new_data,
  weights = NULL,
  args = NULL,
  alltimes = FALSE,
  accumulate = TRUE
)

Arguments

formula

A formula object

models

An object of type model_specification

data

Source data

new_data

Data where censoring probabilities are made

weights

A vector of observation weights

args

Additional argument to coxph (currently not used)

alltimes

Indicates whether to estimate probabilities at all times or only event times

accumulate

Indicates whether to produce one entry per subject rather than one entry per observation

Value

A vector of estimated censoring probabilities

Author

M. Alan Brookhart