Skip to content

Commit c9fc8b6

Browse files
committed
refactor for nonlinear score update
1 parent 4a1fa2c commit c9fc8b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doubleml/double_ml_irm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def cate(self, basis):
352352
'Valid score ' + ' or '.join(valid_score) + '.')
353353

354354
# define the orthogonal signal
355-
orth_signal = self.psi_b.reshape(-1)
355+
orth_signal = self.psi_elements['psi_b'].reshape(-1)
356356
# fit the best linear predictor
357357
model = DoubleMLBLP(orth_signal, basis=basis).fit()
358358

@@ -393,7 +393,7 @@ def gate(self, groups):
393393
warnings.warn('At least one group effect is estimated with less than 6 observations.')
394394

395395
# define the orthogonal signal
396-
orth_signal = self.psi_b.reshape(-1)
396+
orth_signal = self.psi_elements['psi_b'].reshape(-1)
397397
# fit the best linear predictor for GATE (different confint() method)
398398
model = DoubleMLBLP(orth_signal, basis=groups, is_gate=True).fit()
399399

0 commit comments

Comments
 (0)