fit_coxph: a function to fit a coxph model

fit_coxph(
  models,
  data,
  outcome,
  weights = NULL,
  fg = FALSE,
  args = NULL,
  input_formula = NULL
)

Arguments

models

A model_specification object

data

Source data

outcome

The outcome to model

weights

A vector of observation weights

fg

Use a Fine and Gray competing risks model?

args

Additional argument to coxph (currently not used)

input_formula

A formula specifying the regression component of the Cox

Value

A fitted model

Author

M. Alan Brookhart and Alexander Breskin