estimate_outcome_cph: a function to estimate an outcome risk using cph function in R

estimate_outcome_cph(
  models,
  data,
  new_data,
  times,
  boot_wts = NULL,
  out_formula = NULL
)

Arguments

models

An object of type model_specification

data

Source data

new_data

Data where outcome probabilities are made

times

The times at which to predict the outcomes

boot_wts

A vector of observation weights

out_formula

A formula providing the outcome model. If NULL then the

Value

A vector of estimated outcome probabilities

Author

M. Alan Brookhart