Apply the ETM door function to code-pair co-occurrence rows
door.RdApply the ETM door function to code-pair co-occurrence rows
Arguments
- data
Data frame from
accum$model$row.connection.counts. If onlyQEUNITis present (TMA default), it is copied toENA_UNITfor alignment withreplace_door().- method
One or more of
"Lookback","EMA","LOESS".- unit_col
Column grouping the trajectory (e.g.
"UserName").- time_col
Strictly increasing time column within each unit (e.g.
"Index").- post_norm
"none"or"l2"row normalization ondoor_*columns after pooling.- lookback_size
Lookback only — max rows in the backward pool. A single integer applies to all units; a named vector or data.frame (
unit+lookback) sets per-unit lookback sizes.- aggregate
Lookback only —
"sum"or"mean".- weighting
Lookback only —
"equal"or"linear"ramp.- segment_col
Lookback only — if set, the pool resets at each new segment level.
- alpha
EMA only — blend weight on the current row (0–1).
- loess_span, loess_degree, loess_family
LOESS only — passed to
stats::loess.- verbose
Print method settings.