Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dte_adj/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ def _compute_local_treatment_effects_core(

# Compute outcome indicators (different for LDTE vs LPTE)
if use_intervals:
bi = (Y[i] < locations) * 1
bi = (Y[i] <= locations) * 1
bi = bi[1:] - bi[:-1] # Convert to interval probabilities
else:
bi = Y[i] <= locations
bi = (Y[i] <= locations) * 1

xi_t[i] = ((1 - 1 / w_s) * y_t_mu[i] - y_c_mu[i] + bi / w_s) - beta * (
(1 - 1 / w_s) * d_t_eta[i] - d_c_eta[i] + D[i] / w_s
Expand Down
Loading