Door lookback window pooling across units
Usage
door_lookback(
conn_counts,
unit_row_indices,
lookback_sizes,
aggregate_mean = FALSE,
weighting_linear = FALSE,
segment_ids = integer()
)Arguments
- conn_counts
Numeric matrix of connection counts
- unit_row_indices
List of integer vectors of row indices (0-indexed or 1-indexed R converted)
- lookback_sizes
Integer vector of lookback sizes per unit
- aggregate_mean
Logical: TRUE = mean, FALSE = sum
- weighting_linear
Logical: TRUE = linear weights, FALSE = equal
- segment_ids
Optional integer vector of segment IDs