Formulas for modeling the propensity score. get_ps_formula()
obtains
the formulas and add_ps_formula()
adds them to an existing
analysis
object.
get_ps_formula( splines = TRUE, interaction = TRUE, treat = "treat", keep_names = FALSE ) add_ps_formula(x, splines = TRUE, interaction = TRUE)
splines | Whether to use natural cubic splines ( |
---|---|
interaction | Whether to include an interaction between cancer stage and days since diagnosis. |
treat | Name of the treatment variable. Default is |
keep_names | If |
x | An |
get_ps_formula()
returns a list of formulas. add_ps_formula()
returns an analysis
object
with a new list column named ps_formula
where each element is the formula
used for a particular pairwise analysis.