Skip to content

Enable formula to wlr() #280

@LittleBeannie

Description

@LittleBeannie

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)
)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions