cleverly.MSMProjection#

class cleverly.MSMProjection(model: MSM, regimens: Any = None, horizons: Sequence[int] | None = None)[source]#

Project counterfactual means onto a marginal structural model.

Parameters:
modelMSM

Working model that defines the projection terms and weights.

regimensAny or None

Longitudinal regimen cells. Leave unset for a point-treatment projection.

horizonssequence of int or None

Follow-up times included in a longitudinal projection.

Methods#

Attributes#

MSMProjection.definition: str = 'projection of counterfactual means onto a working model'#
MSMProjection.horizons: Sequence[int] | None = None#
MSMProjection.name: str = 'msm'#
MSMProjection.regimens: Any = None#
MSMProjection.model: MSM#