You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add equivalents of SpatialAggregate and Flows, which disaggregate counts according to per-subscriber categories defined in a specified sub-query (e.g. MobilityClassification - see #4666). The aggregate queries should take a subscriber_labels argument in addition to the subscriber-locations queries, join on subscriber, and group by label as well as location.
In the case of Flows, we could consider allowing two separate sets of labels (i.e. subscribers labelled differently at the "from" and "to" locations). It's not clear whether that would be useful in practice, though (and if it was, the same could be achieved by using a single subscriber_labels query that assigns a label-pair to each subscriber), so in the first instance a single set of labels should be sufficient.
This could be achieved using new classes LabelledSpatialAggregate and LabelledFlows, or by adding an optional subscriber_labels parameter to the existing SpatialAggregate and Flows classes.
The text was updated successfully, but these errors were encountered:
jc-harrison
changed the title
Introduce equivalents of SpatialAggregate and Flows, which disaggregate counts according to categories defined in a specified sub-query.
Labelled spatial aggregate / flows.
Dec 6, 2021
Is this more generally applicable than these two classes? i.e. all of the od variants (ex: trips, consec, meaningful locations), and all aggregates to a location (ex: TLE, unique subs, unmoving counts, introversion etc.)?
Is this more generally applicable than these two classes? i.e. all of the od variants (ex: trips, consec, meaningful locations), and all aggregates to a location (ex: TLE, unique subs, unmoving counts, introversion etc.)?
Yes, I suppose this could apply to all aggregates (at least, all aggregates over subscribers - which is just about everything except TotalNetworkObjects, I think).
Add equivalents of
SpatialAggregate
andFlows
, which disaggregate counts according to per-subscriber categories defined in a specified sub-query (e.g.MobilityClassification
- see #4666). The aggregate queries should take asubscriber_labels
argument in addition to the subscriber-locations queries, join on subscriber, and group by label as well as location.In the case of
Flows
, we could consider allowing two separate sets of labels (i.e. subscribers labelled differently at the "from" and "to" locations). It's not clear whether that would be useful in practice, though (and if it was, the same could be achieved by using a singlesubscriber_labels
query that assigns a label-pair to each subscriber), so in the first instance a single set of labels should be sufficient.This could be achieved using new classes
LabelledSpatialAggregate
andLabelledFlows
, or by adding an optionalsubscriber_labels
parameter to the existingSpatialAggregate
andFlows
classes.The text was updated successfully, but these errors were encountered: