UpDownGeoLift.aggregate_draws#
- UpDownGeoLift.aggregate_draws(*, start=None, end=None, aggregate='mean')[source]#
Aggregate a common inclusive post-intervention window within draws.
The
geovariable retains atreated_unitsdimension andarm_meanretains separate up and down values.meanyields effect per outcome period;sumyields cumulative effect over the selected periods.- Parameters:
start (
int|float|Timestamp|None) – First included post-intervention period. Defaults to the first post period.end (
int|float|Timestamp|None) – Last included post-intervention period. Defaults to the last post period.aggregate (
Literal['mean','sum']) – Draw-wise time aggregation over the inclusive window.
- Returns:
Joint geo and arm effect draws with window metadata.
- Return type:
xr.Dataset