The rmst() allows formula interface, i.e.,
rmst(
data = ex1_delayed_effect,
formula = Surv(month, evntd) ~ trt,
tau = 10,
reference = "0"
)
Shall we enable formula interface to wlr()?
wlr(
data = ex1_delayed_effect,
formula = Surv(month, evntd) ~ trt ,
weight = fh(0, 0.5)
)
If there are strata, what is the best way to save it in the formula?
Keaven's suggestion:
wlr(
data = ex1_delayed_effect,
formula = Surv(month, evntd) ~ trt + strata(strata variable),
weight = fh(0, 0.5)
)
The
rmst()allows formula interface, i.e.,Shall we enable formula interface to
wlr()?If there are strata, what is the best way to save it in the formula?
Keaven's suggestion: