Estimating cumulative risk across a list of treatment protocols

compare_protocols(
  model_spec,
  censor_var,
  formulae = NULL,
  data,
  model_type = "ipw",
  ...
)

Arguments

model_spec

The base data structure and models with the censoring variable omitted

censor_var

A vector of columns that represent censoring variables for each treatment protocol

formulae

The RHS of the formula in the identify_censoring call

data

The refrence data

model_type

Either 'ipw' or 'aipw' depending on the weighting approach

...

fit parameters

Value

A list of fits for each treatment protocol

Author

M. Phelan