estimate_censor_cph: a function to estimate a censoring probability using cph

estimate_censor_cph(
  formula,
  models,
  data,
  new_data,
  weights = NULL,
  args = NULL,
  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 cph (currently not used)

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