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 arms names for that cause (Stensrud et al. 2022). first names the cause counted first within a time step; the order is part of the estimand when the arms differ. Place it in regimens= of LTMLE(survival_model="hazard", targeting="one_step") beside at least one static arm, which is the reference of the contrasts.

Parameters:
armsmapping of str to object

The treatment level whose component acts on each of the two causes, by cause label.

firststr

The cause counted first within a time step.

Examples

>>> from cleverly.longitudinal import Separable
>>> Separable(arms={"death": 0, "relapse": 1}, first="death").first
'death'

Methods#

Attributes#

Separable.arms: Mapping[str, Any]#
Separable.first: str#