The formula argument of rmst() now requires a single syntax, Surv(tte, event) ~ group). However, to be consistent with user expectations, it is aware of the argument names of Surv(), so it is flexible enough to handle valid input such as Surv(event = event, tte) ~ group. Thanks to @nanxstats for the argument parsing code.
Closes #220
Follow-up to #216
The
formula
argument ofrmst()
now requires a single syntax,Surv(tte, event) ~ group)
. However, to be consistent with user expectations, it is aware of the argument names ofSurv()
, so it is flexible enough to handle valid input such asSurv(event = event, tte) ~ group
. Thanks to @nanxstats for the argument parsing code.Below are examples of valid and invalid formulas: