We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d0051a commit 61e2e13Copy full SHA for 61e2e13
1 file changed
dte_adj/stratified.py
@@ -73,7 +73,7 @@ def _compute_cumulative_distribution(
73
for s in s_list:
74
s_mask = strata == s
75
w_s[s] = (s_mask & treatment_mask).sum() / s_mask.sum()
76
- for i, outcome in enumerate(n_loc):
+ for i, outcome in enumerate(locations):
77
for j in range(n_records):
78
s = strata[j]
79
prediction[j, i] = (outcomes[j] <= outcome) / w_s[s] * treatment_mask[j]
0 commit comments