estimate_outcome_coxph: a function to estimate outcome probabilities at times in new data using coxph

estimate_outcome_coxph(
  models,
  data,
  new_data,
  weights = NULL,
  fg = FALSE,
  args = NULL
)

Arguments

models

A model_specification object

data

Source data

new_data

Data where outcome probabilities are made

weights

A vector of observation weights

fg

Use a Fine and Gray competing risks model

args

Additional argument to coxph (currently not used)

Value

A vector of estimated outcome probabilities

Author

M. Alan Brookhart and Alexander Breskin