cleverly.longitudinal.Separable#
- class cleverly.longitudinal.Separable(arms: Mapping[str, Any], first: str)[source]#
A separable intervention on a treatment whose components act on two competing causes.
The component of the baseline treatment that acts on each cause takes the arm
armsnames for that cause (Stensrud et al. 2022).firstnames the cause counted first within a time step; the order is part of the estimand when the arms differ. Place it inregimens=ofLTMLE(survival_model="hazard", targeting="one_step")beside at least one static arm, which is the reference of the contrasts.- Parameters:
Examples
>>> from cleverly.longitudinal import Separable >>> Separable(arms={"death": 0, "relapse": 1}, first="death").first 'death'